//===----------------------------------------------------------------------===//
//
// This source file is part of the Soto for AWS open source project
//
// Copyright (c) 2017-2024 the Soto project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of Soto project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//

// THIS FILE IS AUTOMATICALLY GENERATED by https://github.com/soto-project/soto-codegenerator.
// DO NOT EDIT.

#if canImport(FoundationEssentials)
import FoundationEssentials
#else
import Foundation
#endif
@_spi(SotoInternal) import SotoCore

extension WAFV2 {
    // MARK: Enums

    public enum ActionValue: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case allow = "ALLOW"
        case block = "BLOCK"
        case captcha = "CAPTCHA"
        case challenge = "CHALLENGE"
        case count = "COUNT"
        case excludedAsCount = "EXCLUDED_AS_COUNT"
        public var description: String { return self.rawValue }
    }

    public enum AssociatedResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case apiGateway = "API_GATEWAY"
        case appRunnerService = "APP_RUNNER_SERVICE"
        case cloudfront = "CLOUDFRONT"
        case cognitoUserPool = "COGNITO_USER_POOL"
        case verifiedAccessInstance = "VERIFIED_ACCESS_INSTANCE"
        public var description: String { return self.rawValue }
    }

    public enum BodyParsingFallbackBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case evaluateAsString = "EVALUATE_AS_STRING"
        case match = "MATCH"
        case noMatch = "NO_MATCH"
        public var description: String { return self.rawValue }
    }

    public enum ComparisonOperator: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case eq = "EQ"
        case ge = "GE"
        case gt = "GT"
        case le = "LE"
        case lt = "LT"
        case ne = "NE"
        public var description: String { return self.rawValue }
    }

    public enum CountryCode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `as` = "AS"
        case `do` = "DO"
        case `in` = "IN"
        case `is` = "IS"
        case ad = "AD"
        case ae = "AE"
        case af = "AF"
        case ag = "AG"
        case ai = "AI"
        case al = "AL"
        case am = "AM"
        case ao = "AO"
        case aq = "AQ"
        case ar = "AR"
        case at = "AT"
        case au = "AU"
        case aw = "AW"
        case ax = "AX"
        case az = "AZ"
        case ba = "BA"
        case bb = "BB"
        case bd = "BD"
        case be = "BE"
        case bf = "BF"
        case bg = "BG"
        case bh = "BH"
        case bi = "BI"
        case bj = "BJ"
        case bl = "BL"
        case bm = "BM"
        case bn = "BN"
        case bo = "BO"
        case bq = "BQ"
        case br = "BR"
        case bs = "BS"
        case bt = "BT"
        case bv = "BV"
        case bw = "BW"
        case by = "BY"
        case bz = "BZ"
        case ca = "CA"
        case cc = "CC"
        case cd = "CD"
        case cf = "CF"
        case cg = "CG"
        case ch = "CH"
        case ci = "CI"
        case ck = "CK"
        case cl = "CL"
        case cm = "CM"
        case cn = "CN"
        case co = "CO"
        case cr = "CR"
        case cu = "CU"
        case cv = "CV"
        case cw = "CW"
        case cx = "CX"
        case cy = "CY"
        case cz = "CZ"
        case de = "DE"
        case dj = "DJ"
        case dk = "DK"
        case dm = "DM"
        case dz = "DZ"
        case ec = "EC"
        case ee = "EE"
        case eg = "EG"
        case eh = "EH"
        case er = "ER"
        case es = "ES"
        case et = "ET"
        case fi = "FI"
        case fj = "FJ"
        case fk = "FK"
        case fm = "FM"
        case fo = "FO"
        case fr = "FR"
        case ga = "GA"
        case gb = "GB"
        case gd = "GD"
        case ge = "GE"
        case gf = "GF"
        case gg = "GG"
        case gh = "GH"
        case gi = "GI"
        case gl = "GL"
        case gm = "GM"
        case gn = "GN"
        case gp = "GP"
        case gq = "GQ"
        case gr = "GR"
        case gs = "GS"
        case gt = "GT"
        case gu = "GU"
        case gw = "GW"
        case gy = "GY"
        case hk = "HK"
        case hm = "HM"
        case hn = "HN"
        case hr = "HR"
        case ht = "HT"
        case hu = "HU"
        case id = "ID"
        case ie = "IE"
        case il = "IL"
        case im = "IM"
        case io = "IO"
        case iq = "IQ"
        case ir = "IR"
        case it = "IT"
        case je = "JE"
        case jm = "JM"
        case jo = "JO"
        case jp = "JP"
        case ke = "KE"
        case kg = "KG"
        case kh = "KH"
        case ki = "KI"
        case km = "KM"
        case kn = "KN"
        case kp = "KP"
        case kr = "KR"
        case kw = "KW"
        case ky = "KY"
        case kz = "KZ"
        case la = "LA"
        case lb = "LB"
        case lc = "LC"
        case li = "LI"
        case lk = "LK"
        case lr = "LR"
        case ls = "LS"
        case lt = "LT"
        case lu = "LU"
        case lv = "LV"
        case ly = "LY"
        case ma = "MA"
        case mc = "MC"
        case md = "MD"
        case me = "ME"
        case mf = "MF"
        case mg = "MG"
        case mh = "MH"
        case mk = "MK"
        case ml = "ML"
        case mm = "MM"
        case mn = "MN"
        case mo = "MO"
        case mp = "MP"
        case mq = "MQ"
        case mr = "MR"
        case ms = "MS"
        case mt = "MT"
        case mu = "MU"
        case mv = "MV"
        case mw = "MW"
        case mx = "MX"
        case my = "MY"
        case mz = "MZ"
        case na = "NA"
        case nc = "NC"
        case ne = "NE"
        case nf = "NF"
        case ng = "NG"
        case ni = "NI"
        case nl = "NL"
        case no = "NO"
        case np = "NP"
        case nr = "NR"
        case nu = "NU"
        case nz = "NZ"
        case om = "OM"
        case pa = "PA"
        case pe = "PE"
        case pf = "PF"
        case pg = "PG"
        case ph = "PH"
        case pk = "PK"
        case pl = "PL"
        case pm = "PM"
        case pn = "PN"
        case pr = "PR"
        case ps = "PS"
        case pt = "PT"
        case pw = "PW"
        case py = "PY"
        case qa = "QA"
        case re = "RE"
        case ro = "RO"
        case rs = "RS"
        case ru = "RU"
        case rw = "RW"
        case sa = "SA"
        case sb = "SB"
        case sc = "SC"
        case sd = "SD"
        case se = "SE"
        case sg = "SG"
        case sh = "SH"
        case si = "SI"
        case sj = "SJ"
        case sk = "SK"
        case sl = "SL"
        case sm = "SM"
        case sn = "SN"
        case so = "SO"
        case sr = "SR"
        case ss = "SS"
        case st = "ST"
        case sv = "SV"
        case sx = "SX"
        case sy = "SY"
        case sz = "SZ"
        case tc = "TC"
        case td = "TD"
        case tf = "TF"
        case tg = "TG"
        case th = "TH"
        case tj = "TJ"
        case tk = "TK"
        case tl = "TL"
        case tm = "TM"
        case tn = "TN"
        case to = "TO"
        case tr = "TR"
        case tt = "TT"
        case tv = "TV"
        case tw = "TW"
        case tz = "TZ"
        case ua = "UA"
        case ug = "UG"
        case um = "UM"
        case us = "US"
        case uy = "UY"
        case uz = "UZ"
        case va = "VA"
        case vc = "VC"
        case ve = "VE"
        case vg = "VG"
        case vi = "VI"
        case vn = "VN"
        case vu = "VU"
        case wf = "WF"
        case ws = "WS"
        case xk = "XK"
        case ye = "YE"
        case yt = "YT"
        case za = "ZA"
        case zm = "ZM"
        case zw = "ZW"
        public var description: String { return self.rawValue }
    }

    public enum DataProtectionAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case hash = "HASH"
        case substitution = "SUBSTITUTION"
        public var description: String { return self.rawValue }
    }

    public enum FailureReason: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case tokenDomainMismatch = "TOKEN_DOMAIN_MISMATCH"
        case tokenExpired = "TOKEN_EXPIRED"
        case tokenInvalid = "TOKEN_INVALID"
        case tokenMissing = "TOKEN_MISSING"
        public var description: String { return self.rawValue }
    }

    public enum FallbackBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case match = "MATCH"
        case noMatch = "NO_MATCH"
        public var description: String { return self.rawValue }
    }

    public enum FieldToProtectType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case body = "BODY"
        case queryString = "QUERY_STRING"
        case singleCookie = "SINGLE_COOKIE"
        case singleHeader = "SINGLE_HEADER"
        case singleQueryArgument = "SINGLE_QUERY_ARGUMENT"
        public var description: String { return self.rawValue }
    }

    public enum FilterBehavior: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case drop = "DROP"
        case keep = "KEEP"
        public var description: String { return self.rawValue }
    }

    public enum FilterRequirement: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case meetsAll = "MEETS_ALL"
        case meetsAny = "MEETS_ANY"
        public var description: String { return self.rawValue }
    }

    public enum ForwardedIPPosition: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case any = "ANY"
        case first = "FIRST"
        case last = "LAST"
        public var description: String { return self.rawValue }
    }

    public enum IPAddressVersion: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case ipv4 = "IPV4"
        case ipv6 = "IPV6"
        public var description: String { return self.rawValue }
    }

    public enum InspectionLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case common = "COMMON"
        case targeted = "TARGETED"
        public var description: String { return self.rawValue }
    }

    public enum JsonMatchScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case all = "ALL"
        case key = "KEY"
        case value = "VALUE"
        public var description: String { return self.rawValue }
    }

    public enum LabelMatchScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case label = "LABEL"
        case namespace = "NAMESPACE"
        public var description: String { return self.rawValue }
    }

    public enum LogScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case customer = "CUSTOMER"
        case securityLake = "SECURITY_LAKE"
        public var description: String { return self.rawValue }
    }

    public enum LogType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case wafLogs = "WAF_LOGS"
        public var description: String { return self.rawValue }
    }

    public enum LowReputationMode: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case activeUnderDdos = "ACTIVE_UNDER_DDOS"
        case alwaysOn = "ALWAYS_ON"
        public var description: String { return self.rawValue }
    }

    public enum MapMatchScope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case all = "ALL"
        case key = "KEY"
        case value = "VALUE"
        public var description: String { return self.rawValue }
    }

    public enum OversizeHandling: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case `continue` = "CONTINUE"
        case match = "MATCH"
        case noMatch = "NO_MATCH"
        public var description: String { return self.rawValue }
    }

    public enum ParameterExceptionField: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case acpRuleSetResponseInspection = "ACP_RULE_SET_RESPONSE_INSPECTION"
        case andStatement = "AND_STATEMENT"
        case associableResource = "ASSOCIABLE_RESOURCE"
        case associatedResourceType = "ASSOCIATED_RESOURCE_TYPE"
        case atpRuleSetResponseInspection = "ATP_RULE_SET_RESPONSE_INSPECTION"
        case bodyParsingFallbackBehavior = "BODY_PARSING_FALLBACK_BEHAVIOR"
        case byteMatchStatement = "BYTE_MATCH_STATEMENT"
        case challengeConfig = "CHALLENGE_CONFIG"
        case changePropagationStatus = "CHANGE_PROPAGATION_STATUS"
        case cookieMatchPattern = "COOKIE_MATCH_PATTERN"
        case customKeys = "CUSTOM_KEYS"
        case customRequestHandling = "CUSTOM_REQUEST_HANDLING"
        case customResponse = "CUSTOM_RESPONSE"
        case customResponseBody = "CUSTOM_RESPONSE_BODY"
        case dataProtectionConfig = "DATA_PROTECTION_CONFIG"
        case defaultAction = "DEFAULT_ACTION"
        case entityLimit = "ENTITY_LIMIT"
        case excludedRule = "EXCLUDED_RULE"
        case expireTimestamp = "EXPIRE_TIMESTAMP"
        case fallbackBehavior = "FALLBACK_BEHAVIOR"
        case fieldToMatch = "FIELD_TO_MATCH"
        case filterCondition = "FILTER_CONDITION"
        case firewallManagerStatement = "FIREWALL_MANAGER_STATEMENT"
        case forwardedIpConfig = "FORWARDED_IP_CONFIG"
        case geoMatchStatement = "GEO_MATCH_STATEMENT"
        case headerMatchPattern = "HEADER_MATCH_PATTERN"
        case headerName = "HEADER_NAME"
        case ipAddress = "IP_ADDRESS"
        case ipAddressVersion = "IP_ADDRESS_VERSION"
        case ipSet = "IP_SET"
        case ipSetForwardedIpConfig = "IP_SET_FORWARDED_IP_CONFIG"
        case ipSetReferenceStatement = "IP_SET_REFERENCE_STATEMENT"
        case jsonMatchPattern = "JSON_MATCH_PATTERN"
        case jsonMatchScope = "JSON_MATCH_SCOPE"
        case labelMatchStatement = "LABEL_MATCH_STATEMENT"
        case logDestination = "LOG_DESTINATION"
        case loggingFilter = "LOGGING_FILTER"
        case lowReputationMode = "LOW_REPUTATION_MODE"
        case managedRuleGroupConfig = "MANAGED_RULE_GROUP_CONFIG"
        case managedRuleSet = "MANAGED_RULE_SET"
        case managedRuleSetStatement = "MANAGED_RULE_SET_STATEMENT"
        case mapMatchScope = "MAP_MATCH_SCOPE"
        case metricName = "METRIC_NAME"
        case notStatement = "NOT_STATEMENT"
        case orStatement = "OR_STATEMENT"
        case overrideAction = "OVERRIDE_ACTION"
        case oversizeHandling = "OVERSIZE_HANDLING"
        case payloadType = "PAYLOAD_TYPE"
        case position = "POSITION"
        case rateBasedStatement = "RATE_BASED_STATEMENT"
        case regexPatternReferenceStatement = "REGEX_PATTERN_REFERENCE_STATEMENT"
        case regexPatternSet = "REGEX_PATTERN_SET"
        case resourceArn = "RESOURCE_ARN"
        case resourceType = "RESOURCE_TYPE"
        case responseContentType = "RESPONSE_CONTENT_TYPE"
        case rule = "RULE"
        case ruleAction = "RULE_ACTION"
        case ruleGroup = "RULE_GROUP"
        case ruleGroupReferenceStatement = "RULE_GROUP_REFERENCE_STATEMENT"
        case scopeDown = "SCOPE_DOWN"
        case scopeValue = "SCOPE_VALUE"
        case singleHeader = "SINGLE_HEADER"
        case singleQueryArgument = "SINGLE_QUERY_ARGUMENT"
        case sizeConstraintStatement = "SIZE_CONSTRAINT_STATEMENT"
        case sqliMatchStatement = "SQLI_MATCH_STATEMENT"
        case statement = "STATEMENT"
        case tagKeys = "TAG_KEYS"
        case tags = "TAGS"
        case textTransformation = "TEXT_TRANSFORMATION"
        case tokenDomain = "TOKEN_DOMAIN"
        case webAcl = "WEB_ACL"
        case xssMatchStatement = "XSS_MATCH_STATEMENT"
        public var description: String { return self.rawValue }
    }

    public enum PayloadType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case formEncoded = "FORM_ENCODED"
        case json = "JSON"
        public var description: String { return self.rawValue }
    }

    public enum Platform: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case android = "ANDROID"
        case ios = "IOS"
        public var description: String { return self.rawValue }
    }

    public enum PositionalConstraint: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case contains = "CONTAINS"
        case containsWord = "CONTAINS_WORD"
        case endsWith = "ENDS_WITH"
        case exactly = "EXACTLY"
        case startsWith = "STARTS_WITH"
        public var description: String { return self.rawValue }
    }

    public enum RateBasedStatementAggregateKeyType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case constant = "CONSTANT"
        case customKeys = "CUSTOM_KEYS"
        case forwardedIp = "FORWARDED_IP"
        case ip = "IP"
        public var description: String { return self.rawValue }
    }

    public enum ResourceType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case amplify = "AMPLIFY"
        case apiGateway = "API_GATEWAY"
        case appRunnerService = "APP_RUNNER_SERVICE"
        case applicationLoadBalancer = "APPLICATION_LOAD_BALANCER"
        case appsync = "APPSYNC"
        case cognitioUserPool = "COGNITO_USER_POOL"
        case verifiedAccessInstance = "VERIFIED_ACCESS_INSTANCE"
        public var description: String { return self.rawValue }
    }

    public enum ResponseContentType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case applicationJson = "APPLICATION_JSON"
        case textHtml = "TEXT_HTML"
        case textPlain = "TEXT_PLAIN"
        public var description: String { return self.rawValue }
    }

    public enum Scope: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case cloudfront = "CLOUDFRONT"
        case regional = "REGIONAL"
        public var description: String { return self.rawValue }
    }

    public enum SensitivityLevel: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        public var description: String { return self.rawValue }
    }

    public enum SensitivityToAct: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case high = "HIGH"
        case low = "LOW"
        case medium = "MEDIUM"
        public var description: String { return self.rawValue }
    }

    public enum SizeInspectionLimit: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case kb16 = "KB_16"
        case kb32 = "KB_32"
        case kb48 = "KB_48"
        case kb64 = "KB_64"
        public var description: String { return self.rawValue }
    }

    public enum TextTransformationType: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case base64Decode = "BASE64_DECODE"
        case base64DecodeExt = "BASE64_DECODE_EXT"
        case cmdLine = "CMD_LINE"
        case compressWhiteSpace = "COMPRESS_WHITE_SPACE"
        case cssDecode = "CSS_DECODE"
        case escapeSeqDecode = "ESCAPE_SEQ_DECODE"
        case hexDecode = "HEX_DECODE"
        case htmlEntityDecode = "HTML_ENTITY_DECODE"
        case jsDecode = "JS_DECODE"
        case lowercase = "LOWERCASE"
        case md5 = "MD5"
        case none = "NONE"
        case normalizePath = "NORMALIZE_PATH"
        case normalizePathWin = "NORMALIZE_PATH_WIN"
        case removeNulls = "REMOVE_NULLS"
        case replaceComments = "REPLACE_COMMENTS"
        case replaceNulls = "REPLACE_NULLS"
        case sqlHexDecode = "SQL_HEX_DECODE"
        case urlDecode = "URL_DECODE"
        case urlDecodeUni = "URL_DECODE_UNI"
        case utf8ToUnicode = "UTF8_TO_UNICODE"
        public var description: String { return self.rawValue }
    }

    public enum UsageOfAction: String, CustomStringConvertible, Codable, Sendable, CodingKeyRepresentable {
        case disabled = "DISABLED"
        case enabled = "ENABLED"
        public var description: String { return self.rawValue }
    }

    // MARK: Shapes

    public struct APIKeySummary: AWSDecodableShape {
        /// The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
        public let apiKey: String?
        /// The date and time that the key was created.
        public let creationTimestamp: Date?
        /// The token domains that are defined in this API key.
        public let tokenDomains: [String]?
        /// Internal value used by WAF to manage the key.
        public let version: Int?

        @inlinable
        public init(apiKey: String? = nil, creationTimestamp: Date? = nil, tokenDomains: [String]? = nil, version: Int? = nil) {
            self.apiKey = apiKey
            self.creationTimestamp = creationTimestamp
            self.tokenDomains = tokenDomains
            self.version = version
        }

        private enum CodingKeys: String, CodingKey {
            case apiKey = "APIKey"
            case creationTimestamp = "CreationTimestamp"
            case tokenDomains = "TokenDomains"
            case version = "Version"
        }
    }

    public struct AWSManagedRulesACFPRuleSet: AWSEncodableShape & AWSDecodableShape {
        /// The path of the account creation endpoint for your application. This is the page on your website that accepts the completed registration form for a new user. This page must accept POST requests. For example, for the URL https://example.com/web/newaccount, you would provide
        /// 	the path /web/newaccount. Account creation page paths that
        /// 	start with the path that you provide are considered a match. For example
        /// 	/web/newaccount matches the account creation paths
        /// 		/web/newaccount, /web/newaccount/,
        /// 		/web/newaccountPage, and
        /// 		/web/newaccount/thisPage, but doesn't match the path
        /// 		/home/web/newaccount or
        /// 		/website/newaccount.
        public let creationPath: String
        /// Allow the use of regular expressions in the registration page path and the account creation path.
        public let enableRegexInPath: Bool?
        /// The path of the account registration endpoint for your application. This is the page on your website that presents the registration form to new users.   This page must accept GET text/html requests.  For example, for the URL https://example.com/web/registration, you would provide
        /// 	the path /web/registration. Registration page paths that
        /// 	start with the path that you provide are considered a match. For example
        /// 	    /web/registration matches the registration paths
        /// 	    /web/registration, /web/registration/,
        /// 	    /web/registrationPage, and
        /// 	    /web/registration/thisPage, but doesn't match the path
        /// 	    /home/web/registration or
        /// 	    /website/registration.
        public let registrationPagePath: String
        /// The criteria for inspecting account creation requests, used by the ACFP rule group to validate and track account creation attempts.
        public let requestInspection: RequestInspectionACFP
        /// The criteria for inspecting responses to account creation requests, used by the ACFP rule group to track account creation success rates.   Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.  The ACFP rule group evaluates the responses that your protected resources send back to client account creation attempts, keeping count of successful and failed attempts from each IP address and client session. Using this information, the rule group labels  and mitigates requests from client sessions and IP addresses that have had too many successful account creation attempts in a short amount of time.
        public let responseInspection: ResponseInspection?

        @inlinable
        public init(creationPath: String, enableRegexInPath: Bool? = nil, registrationPagePath: String, requestInspection: RequestInspectionACFP, responseInspection: ResponseInspection? = nil) {
            self.creationPath = creationPath
            self.enableRegexInPath = enableRegexInPath
            self.registrationPagePath = registrationPagePath
            self.requestInspection = requestInspection
            self.responseInspection = responseInspection
        }

        public func validate(name: String) throws {
            try self.validate(self.creationPath, name: "creationPath", parent: name, max: 256)
            try self.validate(self.creationPath, name: "creationPath", parent: name, min: 1)
            try self.validate(self.creationPath, name: "creationPath", parent: name, pattern: "\\S")
            try self.validate(self.registrationPagePath, name: "registrationPagePath", parent: name, max: 256)
            try self.validate(self.registrationPagePath, name: "registrationPagePath", parent: name, min: 1)
            try self.validate(self.registrationPagePath, name: "registrationPagePath", parent: name, pattern: "\\S")
            try self.requestInspection.validate(name: "\(name).requestInspection")
            try self.responseInspection?.validate(name: "\(name).responseInspection")
        }

        private enum CodingKeys: String, CodingKey {
            case creationPath = "CreationPath"
            case enableRegexInPath = "EnableRegexInPath"
            case registrationPagePath = "RegistrationPagePath"
            case requestInspection = "RequestInspection"
            case responseInspection = "ResponseInspection"
        }
    }

    public struct AWSManagedRulesATPRuleSet: AWSEncodableShape & AWSDecodableShape {
        /// Allow the use of regular expressions in the login page path.
        public let enableRegexInPath: Bool?
        /// The path of the login endpoint for your application. For example, for the URL https://example.com/web/login, you would provide the path /web/login. Login paths that start with the path that you provide are considered a match. For example /web/login matches the login paths /web/login, /web/login/, /web/loginPage, and /web/login/thisPage, but doesn't match the login path /home/web/login or /website/login. The rule group inspects only HTTP POST requests to your specified login endpoint.
        public let loginPath: String
        /// The criteria for inspecting login requests, used by the ATP rule group to validate credentials usage.
        public let requestInspection: RequestInspection?
        /// The criteria for inspecting responses to login requests, used by the ATP rule group to track login failure rates.   Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.  The ATP rule group evaluates the responses that your protected resources send back to client login attempts, keeping count of successful and failed attempts for each IP address and client session. Using this information, the rule group labels  and mitigates requests from client sessions and IP addresses that have had too many failed login attempts in a short amount of time.
        public let responseInspection: ResponseInspection?

        @inlinable
        public init(enableRegexInPath: Bool? = nil, loginPath: String, requestInspection: RequestInspection? = nil, responseInspection: ResponseInspection? = nil) {
            self.enableRegexInPath = enableRegexInPath
            self.loginPath = loginPath
            self.requestInspection = requestInspection
            self.responseInspection = responseInspection
        }

        public func validate(name: String) throws {
            try self.requestInspection?.validate(name: "\(name).requestInspection")
            try self.responseInspection?.validate(name: "\(name).responseInspection")
        }

        private enum CodingKeys: String, CodingKey {
            case enableRegexInPath = "EnableRegexInPath"
            case loginPath = "LoginPath"
            case requestInspection = "RequestInspection"
            case responseInspection = "ResponseInspection"
        }
    }

    public struct AWSManagedRulesAntiDDoSRuleSet: AWSEncodableShape & AWSDecodableShape {
        /// Configures the request handling that's applied by the managed rule group rules ChallengeAllDuringEvent and ChallengeDDoSRequests during a distributed denial of service (DDoS) attack.
        public let clientSideActionConfig: ClientSideActionConfig
        /// The sensitivity that the rule group rule DDoSRequests uses when matching against the  DDoS suspicion labeling on a request. The managed rule group adds the labeling during DDoS events, before the DDoSRequests rule runs.   The higher the sensitivity, the more levels of labeling that the rule matches:    Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request.   Medium sensitivity causes the rule to match on the medium and high suspicion labels.   High sensitivity causes the rule to match on all of the suspicion labels: low, medium, and high.   Default: LOW
        public let sensitivityToBlock: SensitivityToAct?

        @inlinable
        public init(clientSideActionConfig: ClientSideActionConfig, sensitivityToBlock: SensitivityToAct? = nil) {
            self.clientSideActionConfig = clientSideActionConfig
            self.sensitivityToBlock = sensitivityToBlock
        }

        public func validate(name: String) throws {
            try self.clientSideActionConfig.validate(name: "\(name).clientSideActionConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case clientSideActionConfig = "ClientSideActionConfig"
            case sensitivityToBlock = "SensitivityToBlock"
        }
    }

    public struct AWSManagedRulesBotControlRuleSet: AWSEncodableShape & AWSDecodableShape {
        /// Applies only to the targeted inspection level.  Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rules TGT_ML_CoordinatedActivityLow and TGT_ML_CoordinatedActivityMedium, which
        /// inspect for anomalous behavior that might indicate distributed, coordinated bot activity. For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the WAF Developer Guide. Default: TRUE
        public let enableMachineLearning: Bool?
        /// The inspection level to use for the Bot Control rule group. The common level is the least expensive. The  targeted level includes all common level rules and adds rules with more advanced inspection criteria. For  details, see WAF Bot Control rule group in the WAF Developer Guide.
        public let inspectionLevel: InspectionLevel

        @inlinable
        public init(enableMachineLearning: Bool? = nil, inspectionLevel: InspectionLevel) {
            self.enableMachineLearning = enableMachineLearning
            self.inspectionLevel = inspectionLevel
        }

        private enum CodingKeys: String, CodingKey {
            case enableMachineLearning = "EnableMachineLearning"
            case inspectionLevel = "InspectionLevel"
        }
    }

    public struct ActionCondition: AWSEncodableShape & AWSDecodableShape {
        /// The action setting that a log record must contain in order to meet the condition. This is the action that WAF applied to the web request.  For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action.  The value EXCLUDED_AS_COUNT matches on  excluded rules and also on rules that have a rule action override of Count.
        public let action: ActionValue

        @inlinable
        public init(action: ActionValue) {
            self.action = action
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
        }
    }

    public struct AddressField: AWSEncodableShape & AWSDecodableShape {
        /// The name of a single primary address field.  How you specify the address fields depends on the request inspection payload type.   For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } },  the address field idenfiers are /form/primaryaddressline1, /form/primaryaddressline2, and /form/primaryaddressline3.   For form encoded payload types, use the HTML form names. For example, for an HTML form with input elements named primaryaddressline1, primaryaddressline2, and primaryaddressline3, the address fields identifiers are primaryaddressline1, primaryaddressline2, and primaryaddressline3.
        public let identifier: String

        @inlinable
        public init(identifier: String) {
            self.identifier = identifier
        }

        public func validate(name: String) throws {
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case identifier = "Identifier"
        }
    }

    public struct All: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct AllQueryArguments: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct AllowAction: AWSEncodableShape & AWSDecodableShape {
        /// Defines custom handling for the web request. For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.
        public let customRequestHandling: CustomRequestHandling?

        @inlinable
        public init(customRequestHandling: CustomRequestHandling? = nil) {
            self.customRequestHandling = customRequestHandling
        }

        public func validate(name: String) throws {
            try self.customRequestHandling?.validate(name: "\(name).customRequestHandling")
        }

        private enum CodingKeys: String, CodingKey {
            case customRequestHandling = "CustomRequestHandling"
        }
    }

    public struct AndStatement: AWSEncodableShape & AWSDecodableShape {
        /// The statements to combine with AND logic. You can use any statements that can be nested.
        public let statements: [Statement]

        @inlinable
        public init(statements: [Statement]) {
            self.statements = statements
        }

        public func validate(name: String) throws {
            try self.statements.forEach {
                try $0.validate(name: "\(name).statements[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case statements = "Statements"
        }
    }

    public struct ApplicationAttribute: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the attribute name.
        public let name: String?
        /// Specifies the attribute value.
        public let values: [String]?

        @inlinable
        public init(name: String? = nil, values: [String]? = nil) {
            self.name = name
            self.values = values
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.values?.forEach {
                try validate($0, name: "values[]", parent: name, max: 64)
                try validate($0, name: "values[]", parent: name, min: 1)
            }
            try self.validate(self.values, name: "values", parent: name, max: 10)
            try self.validate(self.values, name: "values", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case values = "Values"
        }
    }

    public struct ApplicationConfig: AWSEncodableShape & AWSDecodableShape {
        /// Contains the attribute name and a list of values for that attribute.
        public let attributes: [ApplicationAttribute]?

        @inlinable
        public init(attributes: [ApplicationAttribute]? = nil) {
            self.attributes = attributes
        }

        public func validate(name: String) throws {
            try self.attributes?.forEach {
                try $0.validate(name: "\(name).attributes[]")
            }
            try self.validate(self.attributes, name: "attributes", parent: name, max: 10)
            try self.validate(self.attributes, name: "attributes", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case attributes = "Attributes"
        }
    }

    public struct AsnMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// Contains one or more Autonomous System Numbers (ASNs).   ASNs are unique identifiers assigned to large internet networks managed by organizations such as  internet service providers, enterprises, universities, or government agencies.
        public let asnList: [Int64]
        /// The configuration for inspecting IP addresses to match against an ASN in an HTTP header that you specify,  instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header,  but you can specify any header name.
        public let forwardedIPConfig: ForwardedIPConfig?

        @inlinable
        public init(asnList: [Int64], forwardedIPConfig: ForwardedIPConfig? = nil) {
            self.asnList = asnList
            self.forwardedIPConfig = forwardedIPConfig
        }

        public func validate(name: String) throws {
            try self.asnList.forEach {
                try validate($0, name: "asnList[]", parent: name, max: 4294967295)
                try validate($0, name: "asnList[]", parent: name, min: 0)
            }
            try self.validate(self.asnList, name: "asnList", parent: name, max: 100)
            try self.validate(self.asnList, name: "asnList", parent: name, min: 1)
            try self.forwardedIPConfig?.validate(name: "\(name).forwardedIPConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case asnList = "AsnList"
            case forwardedIPConfig = "ForwardedIPConfig"
        }
    }

    public struct AssociateWebACLRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource to associate with the web ACL.  The ARN must be in one of the following formats:   For an Application Load Balancer: arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id     For an Amazon API Gateway REST API: arn:partition:apigateway:region::/restapis/api-id/stages/stage-name     For an AppSync GraphQL API: arn:partition:appsync:region:account-id:apis/GraphQLApiId     For an Amazon Cognito user pool: arn:partition:cognito-idp:region:account-id:userpool/user-pool-id     For an App Runner service: arn:partition:apprunner:region:account-id:service/apprunner-service-name/apprunner-service-id     For an Amazon Web Services Verified Access instance: arn:partition:ec2:region:account-id:verified-access-instance/instance-id     For an Amplify application: arn:partition:amplify:region:account-id:apps/app-id
        public let resourceArn: String
        /// The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
        public let webACLArn: String

        @inlinable
        public init(resourceArn: String, webACLArn: String) {
            self.resourceArn = resourceArn
            self.webACLArn = webACLArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, max: 2048)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, min: 20)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArn = "ResourceArn"
            case webACLArn = "WebACLArn"
        }
    }

    public struct AssociateWebACLResponse: AWSDecodableShape {
        public init() {}
    }

    public struct AssociationConfig: AWSEncodableShape & AWSDecodableShape {
        /// Customizes the maximum size of the request body that your protected CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access resources forward to WAF for inspection. The default size is 16 KB (16,384 bytes). You can change the setting for any of the available resource types.   You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.  Example JSON:  { "API_GATEWAY": "KB_48", "APP_RUNNER_SERVICE": "KB_32" }  For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
        public let requestBody: [AssociatedResourceType: RequestBodyAssociatedResourceTypeConfig]?

        @inlinable
        public init(requestBody: [AssociatedResourceType: RequestBodyAssociatedResourceTypeConfig]? = nil) {
            self.requestBody = requestBody
        }

        private enum CodingKeys: String, CodingKey {
            case requestBody = "RequestBody"
        }
    }

    public struct BlockAction: AWSEncodableShape & AWSDecodableShape {
        /// Defines a custom response for the web request. For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.
        public let customResponse: CustomResponse?

        @inlinable
        public init(customResponse: CustomResponse? = nil) {
            self.customResponse = customResponse
        }

        public func validate(name: String) throws {
            try self.customResponse?.validate(name: "\(name).customResponse")
        }

        private enum CodingKeys: String, CodingKey {
            case customResponse = "CustomResponse"
        }
    }

    public struct Body: AWSEncodableShape & AWSDecodableShape {
        /// What WAF should do if the body is larger than WAF can inspect.  WAF does not support inspecting the entire contents of the web request body if the body  exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service  only forwards the contents that are within the limit to WAF for inspection.    For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).   For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and  you can increase the limit for each resource type in the web ACL AssociationConfig, for additional processing fees.    For Amplify, use the CloudFront limit.   The options for oversize handling are the following:    CONTINUE - Inspect the available body contents normally, according to the rule inspection criteria.     MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.   You can combine the MATCH or NO_MATCH settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.  Default: CONTINUE
        public let oversizeHandling: OversizeHandling?

        @inlinable
        public init(oversizeHandling: OversizeHandling? = nil) {
            self.oversizeHandling = oversizeHandling
        }

        private enum CodingKeys: String, CodingKey {
            case oversizeHandling = "OversizeHandling"
        }
    }

    public struct ByteMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// The area within the portion of the web request that you want WAF to search for SearchString. Valid values include the following:  CONTAINS  The specified part of the web request must include the value of SearchString, but the location doesn't matter.  CONTAINS_WORD  The specified part of the web request must include the value of SearchString, and SearchString must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, SearchString must be a word, which means that both of the following are true:    SearchString is at the beginning of the specified part of the web request or is preceded by a character other than an alphanumeric character or underscore (_). Examples include the value of a header and ;BadBot.    SearchString is at the end of the specified part of the web request or is followed by a character other than an alphanumeric character or underscore (_), for example, BadBot; and -BadBot;.    EXACTLY  The value of the specified part of the web request must exactly match the value of SearchString.  STARTS_WITH  The value of SearchString must appear at the beginning of the specified part of the web request.  ENDS_WITH  The value of SearchString must appear at the end of the specified part of the web request.
        public let positionalConstraint: PositionalConstraint
        /// A string value that you want WAF to search for. WAF searches only in the part of web requests that you designate for inspection in FieldToMatch. The maximum length of the value is 200 bytes. Valid values depend on the component that you specify for inspection in FieldToMatch:    Method: The HTTP method that you want WAF to search for. This indicates the type of operation specified in the request.     UriPath: The value that you want WAF to search for in the URI path, for example, /images/daily-ad.jpg.     JA3Fingerprint: Available for use with Amazon CloudFront distributions and Application Load Balancers. Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. You can use this choice only with a string match ByteMatchStatement with the PositionalConstraint set to  EXACTLY.  You can obtain the JA3 fingerprint for client requests from the web ACL logs.
        /// 						If WAF is able to calculate the fingerprint, it includes it in the logs.
        /// 						For information about the logging fields,
        /// see Log fields in the WAF Developer Guide.     HeaderOrder: The list of header names to match for. WAF creates a  string that contains the ordered list of header names, from the headers in the web request, and then matches against that string.    If SearchString includes alphabetic characters A-Z and a-z, note that the value is case sensitive.  If you're using the WAF API  Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 200 bytes. For example, suppose the value of Type is HEADER and the value of Data is User-Agent. If you want to search the User-Agent header for the value BadBot, you base64-encode BadBot using MIME base64-encoding and include the resulting value, QmFkQm90, in the value of SearchString.  If you're using the CLI or one of the Amazon Web Services SDKs  The value that you want WAF to search for. The SDK automatically base64 encodes the value.
        public let searchString: AWSBase64Data
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(fieldToMatch: FieldToMatch, positionalConstraint: PositionalConstraint, searchString: AWSBase64Data, textTransformations: [TextTransformation]) {
            self.fieldToMatch = fieldToMatch
            self.positionalConstraint = positionalConstraint
            self.searchString = searchString
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case fieldToMatch = "FieldToMatch"
            case positionalConstraint = "PositionalConstraint"
            case searchString = "SearchString"
            case textTransformations = "TextTransformations"
        }
    }

    public struct CaptchaAction: AWSEncodableShape & AWSDecodableShape {
        /// Defines custom handling for the web request, used when the CAPTCHA inspection determines that the request's token is valid and unexpired. For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.
        public let customRequestHandling: CustomRequestHandling?

        @inlinable
        public init(customRequestHandling: CustomRequestHandling? = nil) {
            self.customRequestHandling = customRequestHandling
        }

        public func validate(name: String) throws {
            try self.customRequestHandling?.validate(name: "\(name).customRequestHandling")
        }

        private enum CodingKeys: String, CodingKey {
            case customRequestHandling = "CustomRequestHandling"
        }
    }

    public struct CaptchaConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines how long a CAPTCHA timestamp in the token remains valid after the client successfully solves a CAPTCHA puzzle.
        public let immunityTimeProperty: ImmunityTimeProperty?

        @inlinable
        public init(immunityTimeProperty: ImmunityTimeProperty? = nil) {
            self.immunityTimeProperty = immunityTimeProperty
        }

        public func validate(name: String) throws {
            try self.immunityTimeProperty?.validate(name: "\(name).immunityTimeProperty")
        }

        private enum CodingKeys: String, CodingKey {
            case immunityTimeProperty = "ImmunityTimeProperty"
        }
    }

    public struct CaptchaResponse: AWSDecodableShape {
        /// The reason for failure, populated when the evaluation of the token fails.
        public let failureReason: FailureReason?
        /// The HTTP response code indicating the status of the CAPTCHA token in the web request. If the token is missing, invalid, or expired, this code is 405 Method Not Allowed.
        public let responseCode: Int?
        /// The time that the CAPTCHA was last solved for the supplied token.
        public let solveTimestamp: Int64?

        @inlinable
        public init(failureReason: FailureReason? = nil, responseCode: Int? = nil, solveTimestamp: Int64? = nil) {
            self.failureReason = failureReason
            self.responseCode = responseCode
            self.solveTimestamp = solveTimestamp
        }

        private enum CodingKeys: String, CodingKey {
            case failureReason = "FailureReason"
            case responseCode = "ResponseCode"
            case solveTimestamp = "SolveTimestamp"
        }
    }

    public struct ChallengeAction: AWSEncodableShape & AWSDecodableShape {
        /// Defines custom handling for the web request, used when the challenge inspection determines that the request's token is valid and unexpired. For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.
        public let customRequestHandling: CustomRequestHandling?

        @inlinable
        public init(customRequestHandling: CustomRequestHandling? = nil) {
            self.customRequestHandling = customRequestHandling
        }

        public func validate(name: String) throws {
            try self.customRequestHandling?.validate(name: "\(name).customRequestHandling")
        }

        private enum CodingKeys: String, CodingKey {
            case customRequestHandling = "CustomRequestHandling"
        }
    }

    public struct ChallengeConfig: AWSEncodableShape & AWSDecodableShape {
        /// Determines how long a challenge timestamp in the token remains valid after the client successfully responds to a challenge.
        public let immunityTimeProperty: ImmunityTimeProperty?

        @inlinable
        public init(immunityTimeProperty: ImmunityTimeProperty? = nil) {
            self.immunityTimeProperty = immunityTimeProperty
        }

        public func validate(name: String) throws {
            try self.immunityTimeProperty?.validate(name: "\(name).immunityTimeProperty")
        }

        private enum CodingKeys: String, CodingKey {
            case immunityTimeProperty = "ImmunityTimeProperty"
        }
    }

    public struct ChallengeResponse: AWSDecodableShape {
        /// The reason for failure, populated when the evaluation of the token fails.
        public let failureReason: FailureReason?
        /// The HTTP response code indicating the status of the challenge token in the web request. If the token is missing, invalid, or expired, this code is 202 Request Accepted.
        public let responseCode: Int?
        /// The time that the challenge was last solved for the supplied token.
        public let solveTimestamp: Int64?

        @inlinable
        public init(failureReason: FailureReason? = nil, responseCode: Int? = nil, solveTimestamp: Int64? = nil) {
            self.failureReason = failureReason
            self.responseCode = responseCode
            self.solveTimestamp = solveTimestamp
        }

        private enum CodingKeys: String, CodingKey {
            case failureReason = "FailureReason"
            case responseCode = "ResponseCode"
            case solveTimestamp = "SolveTimestamp"
        }
    }

    public struct CheckCapacityRequest: AWSEncodableShape {
        /// An array of Rule that you're configuring to use in a rule group or web ACL.
        public let rules: [Rule]
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(rules: [Rule], scope: Scope) {
            self.rules = rules
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.rules.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case rules = "Rules"
            case scope = "Scope"
        }
    }

    public struct CheckCapacityResponse: AWSDecodableShape {
        /// The capacity required by the rules and scope.
        public let capacity: Int64?

        @inlinable
        public init(capacity: Int64? = nil) {
            self.capacity = capacity
        }

        private enum CodingKeys: String, CodingKey {
            case capacity = "Capacity"
        }
    }

    public struct ClientSideAction: AWSEncodableShape & AWSDecodableShape {
        /// The regular expression to match against the web request URI, used to identify requests  that can't handle a silent browser challenge. When the ClientSideAction setting UsageOfAction is enabled,  the managed rule group uses this setting to determine which requests to label with  awswaf:managed:aws:anti-ddos:challengeable-request. If UsageOfAction is disabled, this setting has no effect and the managed rule group doesn't add the label to any requests. The anti-DDoS managed rule group doesn't  evaluate the rules ChallengeDDoSRequests or ChallengeAllDuringEvent for web requests whose URIs match this regex. This  is true regardless of whether you override the rule action for either of the rules in your web ACL configuration.  Amazon Web Services recommends using a regular expression.  This setting is required if UsageOfAction is set to ENABLED. If required, you can provide  between 1 and 5 regex objects in the array of settings.  Amazon Web Services recommends starting with the following setting. Review and update it for your application's needs:  \/api\/|\.(acc|avi|css|gif|jpe?g|js|mp[34]|ogg|otf|pdf|png|tiff?|ttf|webm|webp|woff2?)$
        public let exemptUriRegularExpressions: [Regex]?
        /// The sensitivity that the rule group rule ChallengeDDoSRequests uses when matching against the  DDoS suspicion labeling on a request. The managed rule group adds the labeling during DDoS events, before the ChallengeDDoSRequests rule runs.   The higher the sensitivity, the more levels of labeling that the rule matches:    Low sensitivity is less sensitive, causing the rule to match only on the most likely participants in an attack, which are the requests with the high suspicion label awswaf:managed:aws:anti-ddos:high-suspicion-ddos-request.   Medium sensitivity causes the rule to match on the medium and high suspicion labels.   High sensitivity causes the rule to match on all of the suspicion labels: low, medium, and high.   Default: HIGH
        public let sensitivity: SensitivityToAct?
        /// Determines whether to use the AWSManagedRulesAntiDDoSRuleSet rules ChallengeAllDuringEvent and ChallengeDDoSRequests in the rule group evaluation and the related label awswaf:managed:aws:anti-ddos:challengeable-request.    If usage is enabled:    The managed rule group adds the label awswaf:managed:aws:anti-ddos:challengeable-request to any web request whose URL does NOT match the regular expressions provided in the  ClientSideAction setting ExemptUriRegularExpressions.    The two rules are evaluated against web requests for protected resources that are experiencing a DDoS attack. The two rules only apply their action to matching requests that have the label awswaf:managed:aws:anti-ddos:challengeable-request.      If usage is disabled:    The managed rule group doesn't add the label awswaf:managed:aws:anti-ddos:challengeable-request to any web requests.    The two rules are not evaluated.   None of the other ClientSideAction settings have any effect.      This setting only enables or disables the use of the two anti-DDOS rules ChallengeAllDuringEvent and ChallengeDDoSRequests in the anti-DDoS managed rule group.  This setting doesn't alter the action setting in the two rules. To override the actions  used by the rules ChallengeAllDuringEvent and ChallengeDDoSRequests,  enable this setting, and then override the rule actions in the usual way, in your managed rule group configuration.
        public let usageOfAction: UsageOfAction

        @inlinable
        public init(exemptUriRegularExpressions: [Regex]? = nil, sensitivity: SensitivityToAct? = nil, usageOfAction: UsageOfAction) {
            self.exemptUriRegularExpressions = exemptUriRegularExpressions
            self.sensitivity = sensitivity
            self.usageOfAction = usageOfAction
        }

        public func validate(name: String) throws {
            try self.exemptUriRegularExpressions?.forEach {
                try $0.validate(name: "\(name).exemptUriRegularExpressions[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case exemptUriRegularExpressions = "ExemptUriRegularExpressions"
            case sensitivity = "Sensitivity"
            case usageOfAction = "UsageOfAction"
        }
    }

    public struct ClientSideActionConfig: AWSEncodableShape & AWSDecodableShape {
        /// Configuration for the use of the AWSManagedRulesAntiDDoSRuleSet rules ChallengeAllDuringEvent and ChallengeDDoSRequests.   This setting isn't related to the configuration of the Challenge action itself. It only  configures the use of the two anti-DDoS rules named here.   You can enable or disable the use of these rules, and you can configure how to use them when they are enabled.
        public let challenge: ClientSideAction

        @inlinable
        public init(challenge: ClientSideAction) {
            self.challenge = challenge
        }

        public func validate(name: String) throws {
            try self.challenge.validate(name: "\(name).challenge")
        }

        private enum CodingKeys: String, CodingKey {
            case challenge = "Challenge"
        }
    }

    public struct Condition: AWSEncodableShape & AWSDecodableShape {
        /// A single action condition. This is the action setting that a log record must contain in order to meet the condition.
        public let actionCondition: ActionCondition?
        /// A single label name condition. This is the fully qualified label name that a log record must contain in order to meet the condition.  Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
        public let labelNameCondition: LabelNameCondition?

        @inlinable
        public init(actionCondition: ActionCondition? = nil, labelNameCondition: LabelNameCondition? = nil) {
            self.actionCondition = actionCondition
            self.labelNameCondition = labelNameCondition
        }

        public func validate(name: String) throws {
            try self.labelNameCondition?.validate(name: "\(name).labelNameCondition")
        }

        private enum CodingKeys: String, CodingKey {
            case actionCondition = "ActionCondition"
            case labelNameCondition = "LabelNameCondition"
        }
    }

    public struct CookieMatchPattern: AWSEncodableShape & AWSDecodableShape {
        /// Inspect all cookies.
        public let all: All?
        /// Inspect only the cookies whose keys don't match any of the strings specified here.
        public let excludedCookies: [String]?
        /// Inspect only the cookies that have a key that matches one of the strings specified here.
        public let includedCookies: [String]?

        @inlinable
        public init(all: All? = nil, excludedCookies: [String]? = nil, includedCookies: [String]? = nil) {
            self.all = all
            self.excludedCookies = excludedCookies
            self.includedCookies = includedCookies
        }

        public func validate(name: String) throws {
            try self.excludedCookies?.forEach {
                try validate($0, name: "excludedCookies[]", parent: name, max: 60)
                try validate($0, name: "excludedCookies[]", parent: name, min: 1)
                try validate($0, name: "excludedCookies[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.excludedCookies, name: "excludedCookies", parent: name, max: 199)
            try self.validate(self.excludedCookies, name: "excludedCookies", parent: name, min: 1)
            try self.includedCookies?.forEach {
                try validate($0, name: "includedCookies[]", parent: name, max: 60)
                try validate($0, name: "includedCookies[]", parent: name, min: 1)
                try validate($0, name: "includedCookies[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.includedCookies, name: "includedCookies", parent: name, max: 199)
            try self.validate(self.includedCookies, name: "includedCookies", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case all = "All"
            case excludedCookies = "ExcludedCookies"
            case includedCookies = "IncludedCookies"
        }
    }

    public struct Cookies: AWSEncodableShape & AWSDecodableShape {
        /// The filter to use to identify the subset of cookies to inspect in a web request.  You must specify exactly one setting: either All, IncludedCookies, or ExcludedCookies. Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
        public let matchPattern: CookieMatchPattern
        /// The parts of the cookies to inspect with the rule inspection criteria. If you specify ALL, WAF inspects both keys and values.   All does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys  or the values or both. To require a match in the keys and in the values, use a logical AND statement to combine two match rules, one that inspects the keys and another that inspects the values.
        public let matchScope: MapMatchScope
        /// What WAF should do if the cookies of the request are more numerous or larger than WAF can inspect.  WAF does not support inspecting the entire contents of request cookies  when they exceed 8 KB (8192 bytes) or 200 total cookies. The underlying host service forwards a maximum of 200 cookies and at most 8 KB of cookie contents to WAF.  The options for oversize handling are the following:    CONTINUE - Inspect the available cookies normally, according to the rule inspection criteria.     MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let oversizeHandling: OversizeHandling

        @inlinable
        public init(matchPattern: CookieMatchPattern, matchScope: MapMatchScope, oversizeHandling: OversizeHandling) {
            self.matchPattern = matchPattern
            self.matchScope = matchScope
            self.oversizeHandling = oversizeHandling
        }

        public func validate(name: String) throws {
            try self.matchPattern.validate(name: "\(name).matchPattern")
        }

        private enum CodingKeys: String, CodingKey {
            case matchPattern = "MatchPattern"
            case matchScope = "MatchScope"
            case oversizeHandling = "OversizeHandling"
        }
    }

    public struct CountAction: AWSEncodableShape & AWSDecodableShape {
        /// Defines custom handling for the web request. For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.
        public let customRequestHandling: CustomRequestHandling?

        @inlinable
        public init(customRequestHandling: CustomRequestHandling? = nil) {
            self.customRequestHandling = customRequestHandling
        }

        public func validate(name: String) throws {
            try self.customRequestHandling?.validate(name: "\(name).customRequestHandling")
        }

        private enum CodingKeys: String, CodingKey {
            case customRequestHandling = "CustomRequestHandling"
        }
    }

    public struct CreateAPIKeyRequest: AWSEncodableShape {
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The client application domains that you want to use this API key for.   Example JSON: "TokenDomains": ["abc.com", "store.abc.com"]  Public suffixes aren't allowed. For example, you can't use gov.au or co.uk as token domains.
        public let tokenDomains: [String]

        @inlinable
        public init(scope: Scope, tokenDomains: [String]) {
            self.scope = scope
            self.tokenDomains = tokenDomains
        }

        public func validate(name: String) throws {
            try self.tokenDomains.forEach {
                try validate($0, name: "tokenDomains[]", parent: name, max: 253)
                try validate($0, name: "tokenDomains[]", parent: name, min: 1)
                try validate($0, name: "tokenDomains[]", parent: name, pattern: "^[\\w\\.\\-/]+$")
            }
            try self.validate(self.tokenDomains, name: "tokenDomains", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case scope = "Scope"
            case tokenDomains = "TokenDomains"
        }
    }

    public struct CreateAPIKeyResponse: AWSDecodableShape {
        /// The generated, encrypted API key. You can copy this for use in your JavaScript CAPTCHA integration.
        public let apiKey: String?

        @inlinable
        public init(apiKey: String? = nil) {
            self.apiKey = apiKey
        }

        private enum CodingKeys: String, CodingKey {
            case apiKey = "APIKey"
        }
    }

    public struct CreateIPSetRequest: AWSEncodableShape {
        /// Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses that you want WAF to inspect for in incoming requests. All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. WAF supports all IPv4 and IPv6 CIDR ranges except for /0.  Example address strings:    For requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.   For requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify  192.0.2.0/24.   For requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128.   For requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64.   For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing. Example JSON Addresses specifications:    Empty array: "Addresses": []    Array with one address: "Addresses": ["192.0.2.44/32"]    Array with three addresses: "Addresses": ["192.0.2.44/32", "192.0.2.0/24", "192.0.0.0/16"]    INVALID specification: "Addresses": [""] INVALID
        public let addresses: [String]
        /// A description of the IP set that helps with identification.
        public let description: String?
        /// The version of the IP addresses, either IPV4 or IPV6.
        public let ipAddressVersion: IPAddressVersion
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// An array of key:value pairs to associate with the resource.
        public let tags: [Tag]?

        @inlinable
        public init(addresses: [String], description: String? = nil, ipAddressVersion: IPAddressVersion, name: String, scope: Scope, tags: [Tag]? = nil) {
            self.addresses = addresses
            self.description = description
            self.ipAddressVersion = ipAddressVersion
            self.name = name
            self.scope = scope
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.addresses.forEach {
                try validate($0, name: "addresses[]", parent: name, max: 50)
                try validate($0, name: "addresses[]", parent: name, min: 1)
                try validate($0, name: "addresses[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case addresses = "Addresses"
            case description = "Description"
            case ipAddressVersion = "IPAddressVersion"
            case name = "Name"
            case scope = "Scope"
            case tags = "Tags"
        }
    }

    public struct CreateIPSetResponse: AWSDecodableShape {
        /// High-level information about an IPSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage an IPSet, and the ARN, that you provide to the IPSetReferenceStatement to use the address set in a Rule.
        public let summary: IPSetSummary?

        @inlinable
        public init(summary: IPSetSummary? = nil) {
            self.summary = summary
        }

        private enum CodingKeys: String, CodingKey {
            case summary = "Summary"
        }
    }

    public struct CreateRegexPatternSetRequest: AWSEncodableShape {
        /// A description of the set that helps with identification.
        public let description: String?
        /// The name of the set. You cannot change the name after you create the set.
        public let name: String
        /// Array of regular expression strings.
        public let regularExpressionList: [Regex]
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// An array of key:value pairs to associate with the resource.
        public let tags: [Tag]?

        @inlinable
        public init(description: String? = nil, name: String, regularExpressionList: [Regex], scope: Scope, tags: [Tag]? = nil) {
            self.description = description
            self.name = name
            self.regularExpressionList = regularExpressionList
            self.scope = scope
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.regularExpressionList.forEach {
                try $0.validate(name: "\(name).regularExpressionList[]")
            }
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case name = "Name"
            case regularExpressionList = "RegularExpressionList"
            case scope = "Scope"
            case tags = "Tags"
        }
    }

    public struct CreateRegexPatternSetResponse: AWSDecodableShape {
        /// High-level information about a RegexPatternSet, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RegexPatternSet, and the ARN, that you provide to the RegexPatternSetReferenceStatement to use the pattern set in a Rule.
        public let summary: RegexPatternSetSummary?

        @inlinable
        public init(summary: RegexPatternSetSummary? = nil) {
            self.summary = summary
        }

        private enum CodingKeys: String, CodingKey {
            case summary = "Summary"
        }
    }

    public struct CreateRuleGroupRequest: AWSEncodableShape {
        /// The web ACL capacity units (WCUs) required for this rule group. When you create your own rule group, you define this, and you cannot change it after creation.  When you add or modify the rules in a rule group, WAF enforces this limit. You can check the capacity  for a set of rules using CheckCapacity. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.  Simple rules that cost little to run use fewer WCUs than more complex rules
        /// 				that use more processing power.
        /// 				Rule group capacity is fixed at creation, which helps users plan their   web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU)  in the WAF Developer Guide.
        public let capacity: Int64
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// A description of the rule group that helps with identification.
        public let description: String?
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// An array of key:value pairs to associate with the resource.
        public let tags: [Tag]?
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(capacity: Int64, customResponseBodies: [String: CustomResponseBody]? = nil, description: String? = nil, name: String, rules: [Rule]? = nil, scope: Scope, tags: [Tag]? = nil, visibilityConfig: VisibilityConfig) {
            self.capacity = capacity
            self.customResponseBodies = customResponseBodies
            self.description = description
            self.name = name
            self.rules = rules
            self.scope = scope
            self.tags = tags
            self.visibilityConfig = visibilityConfig
        }

        public func validate(name: String) throws {
            try self.validate(self.capacity, name: "capacity", parent: name, min: 1)
            try self.customResponseBodies?.forEach {
                try validate($0.key, name: "customResponseBodies.key", parent: name, max: 128)
                try validate($0.key, name: "customResponseBodies.key", parent: name, min: 1)
                try validate($0.key, name: "customResponseBodies.key", parent: name, pattern: "^[\\w\\-]+$")
                try $0.value.validate(name: "\(name).customResponseBodies[\"\($0.key)\"]")
            }
            try self.validate(self.customResponseBodies, name: "customResponseBodies", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.rules?.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
            try self.visibilityConfig.validate(name: "\(name).visibilityConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case capacity = "Capacity"
            case customResponseBodies = "CustomResponseBodies"
            case description = "Description"
            case name = "Name"
            case rules = "Rules"
            case scope = "Scope"
            case tags = "Tags"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct CreateRuleGroupResponse: AWSDecodableShape {
        /// High-level information about a RuleGroup, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a RuleGroup, and the ARN, that you provide to the RuleGroupReferenceStatement to use the rule group in a Rule.
        public let summary: RuleGroupSummary?

        @inlinable
        public init(summary: RuleGroupSummary? = nil) {
            self.summary = summary
        }

        private enum CodingKeys: String, CodingKey {
            case summary = "Summary"
        }
    }

    public struct CreateWebACLRequest: AWSEncodableShape {
        /// Configures the ability for the WAF console to store and retrieve application attributes during the web ACL creation process. Application attributes help WAF give recommendations for protection packs.
        public let applicationConfig: ApplicationConfig?
        /// Specifies custom configurations for the associations between the web ACL and protected resources.   Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can  customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).   You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.  For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
        public let associationConfig: AssociationConfig?
        /// Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.
        public let captchaConfig: CaptchaConfig?
        /// Specifies how WAF should handle challenge evaluations for rules that don't have
        /// their own ChallengeConfig settings. If you don't specify this, WAF uses its default settings for ChallengeConfig.
        public let challengeConfig: ChallengeConfig?
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// Specifies data protection to apply to the web request data for the web ACL. This is a web ACL level data protection option.  The data protection that you configure for the web ACL alters the data that's available for any other data collection activity,  including your WAF logging destinations, web ACL request sampling, and Amazon Security Lake data collection and management. Your other option for data protection is in the logging configuration, which only affects logging.
        public let dataProtectionConfig: DataProtectionConfig?
        /// The action to perform if none of the Rules contained in the WebACL match.
        public let defaultAction: DefaultAction
        /// A description of the web ACL that helps with identification.
        public let description: String?
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String
        /// Specifies the type of DDoS protection to apply to web request data for a web ACL. For most scenarios, it is recommended to use the default protection level, ACTIVE_UNDER_DDOS.  If a web ACL is associated with multiple Application Load Balancers, the changes you make to DDoS protection in that web ACL will apply to all associated Application Load Balancers.
        public let onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig?
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// An array of key:value pairs to associate with the resource.
        public let tags: [Tag]?
        /// Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services resource that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens only for the domain of the protected resource. With a token domain list, WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains. Example JSON: "TokenDomains": { "mywebsite.com", "myotherwebsite.com" }  Public suffixes aren't allowed. For example, you can't use gov.au or co.uk as token domains.
        public let tokenDomains: [String]?
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(applicationConfig: ApplicationConfig? = nil, associationConfig: AssociationConfig? = nil, captchaConfig: CaptchaConfig? = nil, challengeConfig: ChallengeConfig? = nil, customResponseBodies: [String: CustomResponseBody]? = nil, dataProtectionConfig: DataProtectionConfig? = nil, defaultAction: DefaultAction, description: String? = nil, name: String, onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig? = nil, rules: [Rule]? = nil, scope: Scope, tags: [Tag]? = nil, tokenDomains: [String]? = nil, visibilityConfig: VisibilityConfig) {
            self.applicationConfig = applicationConfig
            self.associationConfig = associationConfig
            self.captchaConfig = captchaConfig
            self.challengeConfig = challengeConfig
            self.customResponseBodies = customResponseBodies
            self.dataProtectionConfig = dataProtectionConfig
            self.defaultAction = defaultAction
            self.description = description
            self.name = name
            self.onSourceDDoSProtectionConfig = onSourceDDoSProtectionConfig
            self.rules = rules
            self.scope = scope
            self.tags = tags
            self.tokenDomains = tokenDomains
            self.visibilityConfig = visibilityConfig
        }

        public func validate(name: String) throws {
            try self.applicationConfig?.validate(name: "\(name).applicationConfig")
            try self.captchaConfig?.validate(name: "\(name).captchaConfig")
            try self.challengeConfig?.validate(name: "\(name).challengeConfig")
            try self.customResponseBodies?.forEach {
                try validate($0.key, name: "customResponseBodies.key", parent: name, max: 128)
                try validate($0.key, name: "customResponseBodies.key", parent: name, min: 1)
                try validate($0.key, name: "customResponseBodies.key", parent: name, pattern: "^[\\w\\-]+$")
                try $0.value.validate(name: "\(name).customResponseBodies[\"\($0.key)\"]")
            }
            try self.validate(self.customResponseBodies, name: "customResponseBodies", parent: name, min: 1)
            try self.dataProtectionConfig?.validate(name: "\(name).dataProtectionConfig")
            try self.defaultAction.validate(name: "\(name).defaultAction")
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.rules?.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
            try self.tags?.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
            try self.tokenDomains?.forEach {
                try validate($0, name: "tokenDomains[]", parent: name, max: 253)
                try validate($0, name: "tokenDomains[]", parent: name, min: 1)
                try validate($0, name: "tokenDomains[]", parent: name, pattern: "^[\\w\\.\\-/]+$")
            }
            try self.visibilityConfig.validate(name: "\(name).visibilityConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case applicationConfig = "ApplicationConfig"
            case associationConfig = "AssociationConfig"
            case captchaConfig = "CaptchaConfig"
            case challengeConfig = "ChallengeConfig"
            case customResponseBodies = "CustomResponseBodies"
            case dataProtectionConfig = "DataProtectionConfig"
            case defaultAction = "DefaultAction"
            case description = "Description"
            case name = "Name"
            case onSourceDDoSProtectionConfig = "OnSourceDDoSProtectionConfig"
            case rules = "Rules"
            case scope = "Scope"
            case tags = "Tags"
            case tokenDomains = "TokenDomains"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct CreateWebACLResponse: AWSDecodableShape {
        /// High-level information about a WebACL, returned by operations like create and list. This provides information like the ID, that you can use to retrieve and manage a WebACL, and the ARN, that you provide to operations like AssociateWebACL.
        public let summary: WebACLSummary?

        @inlinable
        public init(summary: WebACLSummary? = nil) {
            self.summary = summary
        }

        private enum CodingKeys: String, CodingKey {
            case summary = "Summary"
        }
    }

    public struct CustomHTTPHeader: AWSEncodableShape & AWSDecodableShape {
        /// The name of the custom header.  For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.
        public let name: String
        /// The value of the custom header.
        public let value: String

        @inlinable
        public init(name: String, value: String) {
            self.name = name
            self.value = value
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[a-zA-Z0-9._$-]+$")
            try self.validate(self.value, name: "value", parent: name, max: 255)
            try self.validate(self.value, name: "value", parent: name, min: 1)
            try self.validate(self.value, name: "value", parent: name, pattern: ".*")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case value = "Value"
        }
    }

    public struct CustomRequestHandling: AWSEncodableShape & AWSDecodableShape {
        /// The HTTP headers to insert into the request. Duplicate header names are not allowed.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let insertHeaders: [CustomHTTPHeader]

        @inlinable
        public init(insertHeaders: [CustomHTTPHeader]) {
            self.insertHeaders = insertHeaders
        }

        public func validate(name: String) throws {
            try self.insertHeaders.forEach {
                try $0.validate(name: "\(name).insertHeaders[]")
            }
            try self.validate(self.insertHeaders, name: "insertHeaders", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case insertHeaders = "InsertHeaders"
        }
    }

    public struct CustomResponse: AWSEncodableShape & AWSDecodableShape {
        /// References the response body that you want WAF to return to the web request client. You can define a custom response for a rule action or a default web ACL action that is set to block. To do this, you first define the response body key and value in the CustomResponseBodies setting for the WebACL or RuleGroup where you want to use it. Then, in the rule action or web ACL default action BlockAction setting, you reference the response body using this key.
        public let customResponseBodyKey: String?
        /// The HTTP status code to return to the client.  For a list of status codes that you can use in your custom responses, see Supported status codes for custom response  in the WAF Developer Guide.
        public let responseCode: Int
        /// The HTTP headers to use in the response. You can specify any header name except for content-type. Duplicate header names are not allowed. For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let responseHeaders: [CustomHTTPHeader]?

        @inlinable
        public init(customResponseBodyKey: String? = nil, responseCode: Int, responseHeaders: [CustomHTTPHeader]? = nil) {
            self.customResponseBodyKey = customResponseBodyKey
            self.responseCode = responseCode
            self.responseHeaders = responseHeaders
        }

        public func validate(name: String) throws {
            try self.validate(self.customResponseBodyKey, name: "customResponseBodyKey", parent: name, max: 128)
            try self.validate(self.customResponseBodyKey, name: "customResponseBodyKey", parent: name, min: 1)
            try self.validate(self.customResponseBodyKey, name: "customResponseBodyKey", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.responseCode, name: "responseCode", parent: name, max: 599)
            try self.validate(self.responseCode, name: "responseCode", parent: name, min: 200)
            try self.responseHeaders?.forEach {
                try $0.validate(name: "\(name).responseHeaders[]")
            }
            try self.validate(self.responseHeaders, name: "responseHeaders", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case customResponseBodyKey = "CustomResponseBodyKey"
            case responseCode = "ResponseCode"
            case responseHeaders = "ResponseHeaders"
        }
    }

    public struct CustomResponseBody: AWSEncodableShape & AWSDecodableShape {
        /// The payload of the custom response.  You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let content: String
        /// The type of content in the payload that you are defining in the Content string.
        public let contentType: ResponseContentType

        @inlinable
        public init(content: String, contentType: ResponseContentType) {
            self.content = content
            self.contentType = contentType
        }

        public func validate(name: String) throws {
            try self.validate(self.content, name: "content", parent: name, max: 10240)
            try self.validate(self.content, name: "content", parent: name, min: 1)
            try self.validate(self.content, name: "content", parent: name, pattern: "^[\\s\\S]*$")
        }

        private enum CodingKeys: String, CodingKey {
            case content = "Content"
            case contentType = "ContentType"
        }
    }

    public struct DataProtection: AWSEncodableShape & AWSDecodableShape {
        /// Specifies how to protect the field. WAF can apply a one-way hash to the field or hard code a string substitution.    One-way hash example: ade099751dEXAMPLEHASH2ea9f3393f80dd5d3bEXAMPLEHASH966ae0d3cd5a1e    Substitution example: REDACTED
        public let action: DataProtectionAction
        /// Specifies whether to also exclude any rate-based rule details from the data protection you have enabled for a given field. If you specify this exception, RateBasedDetails will show the value of the field.  For additional information, see the log field rateBasedRuleList at  Log fields for web ACL traffic in the WAF Developer Guide. Default: FALSE
        public let excludeRateBasedDetails: Bool?
        /// Specifies whether to also exclude any rule match details from the data protection you have enabled for a given field.  WAF logs these details for non-terminating  matching rules and for the terminating matching rule. For additional information, see  Log fields for web ACL traffic in the WAF Developer Guide. Default: FALSE
        public let excludeRuleMatchDetails: Bool?
        /// Specifies the field type and optional keys to apply the protection behavior to.
        public let field: FieldToProtect

        @inlinable
        public init(action: DataProtectionAction, excludeRateBasedDetails: Bool? = nil, excludeRuleMatchDetails: Bool? = nil, field: FieldToProtect) {
            self.action = action
            self.excludeRateBasedDetails = excludeRateBasedDetails
            self.excludeRuleMatchDetails = excludeRuleMatchDetails
            self.field = field
        }

        public func validate(name: String) throws {
            try self.field.validate(name: "\(name).field")
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case excludeRateBasedDetails = "ExcludeRateBasedDetails"
            case excludeRuleMatchDetails = "ExcludeRuleMatchDetails"
            case field = "Field"
        }
    }

    public struct DataProtectionConfig: AWSEncodableShape & AWSDecodableShape {
        /// An array of data protection configurations for specific web request field types. This is defined for each  web ACL. WAF applies the specified protection to all web requests that the web ACL inspects.
        public let dataProtections: [DataProtection]

        @inlinable
        public init(dataProtections: [DataProtection]) {
            self.dataProtections = dataProtections
        }

        public func validate(name: String) throws {
            try self.dataProtections.forEach {
                try $0.validate(name: "\(name).dataProtections[]")
            }
            try self.validate(self.dataProtections, name: "dataProtections", parent: name, max: 26)
            try self.validate(self.dataProtections, name: "dataProtections", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case dataProtections = "DataProtections"
        }
    }

    public struct DefaultAction: AWSEncodableShape & AWSDecodableShape {
        /// Specifies that WAF should allow requests by default.
        public let allow: AllowAction?
        /// Specifies that WAF should block requests by default.
        public let block: BlockAction?

        @inlinable
        public init(allow: AllowAction? = nil, block: BlockAction? = nil) {
            self.allow = allow
            self.block = block
        }

        public func validate(name: String) throws {
            try self.allow?.validate(name: "\(name).allow")
            try self.block?.validate(name: "\(name).block")
        }

        private enum CodingKeys: String, CodingKey {
            case allow = "Allow"
            case block = "Block"
        }
    }

    public struct DeleteAPIKeyRequest: AWSEncodableShape {
        /// The encrypted API key that you want to delete.
        public let apiKey: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(apiKey: String, scope: Scope) {
            self.apiKey = apiKey
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.apiKey, name: "apiKey", parent: name, max: 2048)
            try self.validate(self.apiKey, name: "apiKey", parent: name, min: 1)
            try self.validate(self.apiKey, name: "apiKey", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case apiKey = "APIKey"
            case scope = "Scope"
        }
    }

    public struct DeleteAPIKeyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteFirewallManagerRuleGroupsRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the web ACL.
        public let webACLArn: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let webACLLockToken: String

        @inlinable
        public init(webACLArn: String, webACLLockToken: String) {
            self.webACLArn = webACLArn
            self.webACLLockToken = webACLLockToken
        }

        public func validate(name: String) throws {
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, max: 2048)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, min: 20)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, pattern: "\\S")
            try self.validate(self.webACLLockToken, name: "webACLLockToken", parent: name, max: 36)
            try self.validate(self.webACLLockToken, name: "webACLLockToken", parent: name, min: 1)
            try self.validate(self.webACLLockToken, name: "webACLLockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
        }

        private enum CodingKeys: String, CodingKey {
            case webACLArn = "WebACLArn"
            case webACLLockToken = "WebACLLockToken"
        }
    }

    public struct DeleteFirewallManagerRuleGroupsResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let nextWebACLLockToken: String?

        @inlinable
        public init(nextWebACLLockToken: String? = nil) {
            self.nextWebACLLockToken = nextWebACLLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextWebACLLockToken = "NextWebACLLockToken"
        }
    }

    public struct DeleteIPSetRequest: AWSEncodableShape {
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, lockToken: String, name: String, scope: Scope) {
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct DeleteIPSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteLoggingConfigurationRequest: AWSEncodableShape {
        /// The owner of the logging configuration, which must be set to CUSTOMER for the configurations that you manage.  The log scope SECURITY_LAKE indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see  Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.  Default: CUSTOMER
        public let logScope: LogScope?
        /// Used to distinguish between various logging options. Currently, there is one option. Default: WAF_LOGS
        public let logType: LogType?
        /// The Amazon Resource Name (ARN) of the web ACL from which you want to delete the LoggingConfiguration.
        public let resourceArn: String

        @inlinable
        public init(logScope: LogScope? = nil, logType: LogType? = nil, resourceArn: String) {
            self.logScope = logScope
            self.logType = logType
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case logScope = "LogScope"
            case logType = "LogType"
            case resourceArn = "ResourceArn"
        }
    }

    public struct DeleteLoggingConfigurationResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeletePermissionPolicyRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the rule group from which you want to delete the policy. You must be the owner of the rule group to perform this operation.
        public let resourceArn: String

        @inlinable
        public init(resourceArn: String) {
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArn = "ResourceArn"
        }
    }

    public struct DeletePermissionPolicyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteRegexPatternSetRequest: AWSEncodableShape {
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the set. You cannot change the name after you create the set.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, lockToken: String, name: String, scope: Scope) {
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct DeleteRegexPatternSetResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteRuleGroupRequest: AWSEncodableShape {
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, lockToken: String, name: String, scope: Scope) {
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct DeleteRuleGroupResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DeleteWebACLRequest: AWSEncodableShape {
        /// The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, lockToken: String, name: String, scope: Scope) {
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct DeleteWebACLResponse: AWSDecodableShape {
        public init() {}
    }

    public struct DescribeAllManagedProductsRequest: AWSEncodableShape {
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(scope: Scope) {
            self.scope = scope
        }

        private enum CodingKeys: String, CodingKey {
            case scope = "Scope"
        }
    }

    public struct DescribeAllManagedProductsResponse: AWSDecodableShape {
        /// High-level information for the Amazon Web Services Managed Rules rule groups and Amazon Web Services Marketplace managed rule groups.
        public let managedProducts: [ManagedProductDescriptor]?

        @inlinable
        public init(managedProducts: [ManagedProductDescriptor]? = nil) {
            self.managedProducts = managedProducts
        }

        private enum CodingKeys: String, CodingKey {
            case managedProducts = "ManagedProducts"
        }
    }

    public struct DescribeManagedProductsByVendorRequest: AWSEncodableShape {
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String

        @inlinable
        public init(scope: Scope, vendorName: String) {
            self.scope = scope
            self.vendorName = vendorName
        }

        public func validate(name: String) throws {
            try self.validate(self.vendorName, name: "vendorName", parent: name, max: 128)
            try self.validate(self.vendorName, name: "vendorName", parent: name, min: 1)
            try self.validate(self.vendorName, name: "vendorName", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case scope = "Scope"
            case vendorName = "VendorName"
        }
    }

    public struct DescribeManagedProductsByVendorResponse: AWSDecodableShape {
        /// High-level information for the managed rule groups owned by the specified vendor.
        public let managedProducts: [ManagedProductDescriptor]?

        @inlinable
        public init(managedProducts: [ManagedProductDescriptor]? = nil) {
            self.managedProducts = managedProducts
        }

        private enum CodingKeys: String, CodingKey {
            case managedProducts = "ManagedProducts"
        }
    }

    public struct DescribeManagedRuleGroupRequest: AWSEncodableShape {
        /// The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String
        /// The version of the rule group. You can only use a version that is not scheduled for expiration. If you don't provide this, WAF uses the vendor's default version.
        public let versionName: String?

        @inlinable
        public init(name: String, scope: Scope, vendorName: String, versionName: String? = nil) {
            self.name = name
            self.scope = scope
            self.vendorName = vendorName
            self.versionName = versionName
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.vendorName, name: "vendorName", parent: name, max: 128)
            try self.validate(self.vendorName, name: "vendorName", parent: name, min: 1)
            try self.validate(self.vendorName, name: "vendorName", parent: name, pattern: "\\S")
            try self.validate(self.versionName, name: "versionName", parent: name, max: 64)
            try self.validate(self.versionName, name: "versionName", parent: name, min: 1)
            try self.validate(self.versionName, name: "versionName", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case scope = "Scope"
            case vendorName = "VendorName"
            case versionName = "VersionName"
        }
    }

    public struct DescribeManagedRuleGroupResponse: AWSDecodableShape {
        /// The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the RuleLabels for a Rule.
        public let availableLabels: [LabelSummary]?
        /// The web ACL capacity units (WCUs) required for this rule group. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.  Simple rules that cost little to run use fewer WCUs than more complex rules
        /// 				that use more processing power.
        /// 				Rule group capacity is fixed at creation, which helps users plan their   web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU)  in the WAF Developer Guide.
        public let capacity: Int64?
        /// The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a LabelMatchStatement specification, in the Statement definition of a rule.
        public let consumedLabels: [LabelSummary]?
        /// The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix.    The syntax for the label namespace prefix for a managed rule group is the following:   awswaf:managed:::   When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:   :
        public let labelNamespace: String?
        public let rules: [RuleSummary]?
        /// The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to provide notification of changes to the managed rule group. You can subscribe to the SNS topic to receive notifications when the managed rule group is modified, such as for new versions and for version expiration. For more information, see the Amazon Simple Notification Service Developer Guide.
        public let snsTopicArn: String?
        /// The managed rule group's version.
        public let versionName: String?

        @inlinable
        public init(availableLabels: [LabelSummary]? = nil, capacity: Int64? = nil, consumedLabels: [LabelSummary]? = nil, labelNamespace: String? = nil, rules: [RuleSummary]? = nil, snsTopicArn: String? = nil, versionName: String? = nil) {
            self.availableLabels = availableLabels
            self.capacity = capacity
            self.consumedLabels = consumedLabels
            self.labelNamespace = labelNamespace
            self.rules = rules
            self.snsTopicArn = snsTopicArn
            self.versionName = versionName
        }

        private enum CodingKeys: String, CodingKey {
            case availableLabels = "AvailableLabels"
            case capacity = "Capacity"
            case consumedLabels = "ConsumedLabels"
            case labelNamespace = "LabelNamespace"
            case rules = "Rules"
            case snsTopicArn = "SnsTopicArn"
            case versionName = "VersionName"
        }
    }

    public struct DisassociateWebACLRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource to disassociate from the web ACL.  The ARN must be in one of the following formats:   For an Application Load Balancer: arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id     For an Amazon API Gateway REST API: arn:partition:apigateway:region::/restapis/api-id/stages/stage-name     For an AppSync GraphQL API: arn:partition:appsync:region:account-id:apis/GraphQLApiId     For an Amazon Cognito user pool: arn:partition:cognito-idp:region:account-id:userpool/user-pool-id     For an App Runner service: arn:partition:apprunner:region:account-id:service/apprunner-service-name/apprunner-service-id     For an Amazon Web Services Verified Access instance: arn:partition:ec2:region:account-id:verified-access-instance/instance-id     For an Amplify application: arn:partition:amplify:region:account-id:apps/app-id
        public let resourceArn: String

        @inlinable
        public init(resourceArn: String) {
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArn = "ResourceArn"
        }
    }

    public struct DisassociateWebACLResponse: AWSDecodableShape {
        public init() {}
    }

    public struct EmailField: AWSEncodableShape & AWSDecodableShape {
        /// The name of the email field.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "email": "THE_EMAIL" } },  the email field specification is /form/email.   For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named email1, the email field specification is email1.
        public let identifier: String

        @inlinable
        public init(identifier: String) {
            self.identifier = identifier
        }

        public func validate(name: String) throws {
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case identifier = "Identifier"
        }
    }

    public struct ExcludedRule: AWSEncodableShape & AWSDecodableShape {
        /// The name of the rule whose action you want to override to Count.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct FieldToMatch: AWSEncodableShape & AWSDecodableShape {
        /// Inspect all query arguments.
        public let allQueryArguments: AllQueryArguments?
        /// Inspect the request body as plain text. The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.  WAF does not support inspecting the entire contents of the web request body if the body  exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service  only forwards the contents that are within the limit to WAF for inspection.    For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).   For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and  you can increase the limit for each resource type in the web ACL AssociationConfig, for additional processing fees.    For Amplify, use the CloudFront limit.   For information about how to handle oversized request bodies, see the Body object configuration.
        public let body: Body?
        /// Inspect the request cookies. You must configure scope and pattern matching filters in the Cookies object, to define the set of cookies and the parts of the cookies that WAF inspects.  Only the first 8 KB (8192 bytes) of a request's cookies and only the first 200 cookies are forwarded to WAF for inspection by the underlying host service. You must configure how to handle any oversize cookie content in the Cookies object. WAF applies the pattern matching filters to the cookies that it receives from the underlying host service.
        public let cookies: Cookies?
        /// Inspect a string containing the list of the request's header names, ordered as they appear in the web request
        /// that WAF receives for inspection.  WAF generates the string and then uses that as the field to match component in its inspection.  WAF separates the header names in the string using colons and no added spaces, for example host:user-agent:accept:authorization:referer.
        public let headerOrder: HeaderOrder?
        /// Inspect the request headers. You must configure scope and pattern matching filters in the Headers object, to define the set of headers to and the parts of the headers that WAF inspects.  Only the first 8 KB (8192 bytes) of a request's headers and only the first 200 headers are forwarded to WAF for inspection by the underlying host service. You must configure how to handle any oversize header content in the Headers object. WAF applies the pattern matching filters to the headers that it receives from the underlying host service.
        public let headers: Headers?
        /// Available for use with Amazon CloudFront distributions and Application Load Balancers. Match against the request's JA3 fingerprint. The JA3 fingerprint is a 32-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. WAF calculates and logs this fingerprint for each
        /// 						request that has enough TLS Client Hello information for the calculation. Almost  all web requests include this information.  You can use this choice only with a string match ByteMatchStatement with the PositionalConstraint set to  EXACTLY.    You can obtain the JA3 fingerprint for client requests from the web ACL logs.
        /// 						If WAF is able to calculate the fingerprint, it includes it in the logs.
        /// 						For information about the logging fields,
        /// see Log fields in the WAF Developer Guide.  Provide the JA3 fingerprint string from the logs in your string match statement
        /// 							specification, to match with any future requests that have the same TLS configuration.
        public let ja3Fingerprint: JA3Fingerprint?
        /// Available for use with Amazon CloudFront distributions and Application Load Balancers. Match against the request's JA4 fingerprint. The JA4 fingerprint is a 36-character hash derived from the TLS Client Hello of an incoming request. This fingerprint serves as a unique identifier for the client's TLS configuration. WAF calculates and logs this fingerprint for each
        /// 						request that has enough TLS Client Hello information for the calculation. Almost  all web requests include this information.  You can use this choice only with a string match ByteMatchStatement with the PositionalConstraint set to  EXACTLY.    You can obtain the JA4 fingerprint for client requests from the web ACL logs.
        /// 						If WAF is able to calculate the fingerprint, it includes it in the logs.
        /// 						For information about the logging fields,
        /// see Log fields in the WAF Developer Guide.  Provide the JA4 fingerprint string from the logs in your string match statement
        /// 							specification, to match with any future requests that have the same TLS configuration.
        public let ja4Fingerprint: JA4Fingerprint?
        /// Inspect the request body as JSON. The request body immediately follows the request headers. This is the part of a request that contains any additional data that you want to send to your web server as the HTTP request body, such as data from a form.  WAF does not support inspecting the entire contents of the web request body if the body  exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service  only forwards the contents that are within the limit to WAF for inspection.    For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).   For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and  you can increase the limit for each resource type in the web ACL AssociationConfig, for additional processing fees.    For Amplify, use the CloudFront limit.   For information about how to handle oversized request bodies, see the JsonBody object configuration.
        public let jsonBody: JsonBody?
        /// Inspect the HTTP method. The method indicates the type of operation that the request is asking the origin to perform.
        public let method: Method?
        /// Inspect the query string. This is the part of a URL that appears after a ? character, if any.
        public let queryString: QueryString?
        /// Inspect a single header. Provide the name of the header to inspect, for example, User-Agent or Referer. This setting isn't case sensitive. Example JSON: "SingleHeader": { "Name": "haystack" }  Alternately, you can filter and inspect all headers with the Headers FieldToMatch setting.
        public let singleHeader: SingleHeader?
        /// Inspect a single query argument. Provide the name of the query argument to inspect, such as UserName or SalesRegion. The name can be up to 30 characters long and isn't case sensitive.  Example JSON: "SingleQueryArgument": { "Name": "myArgument" }
        public let singleQueryArgument: SingleQueryArgument?
        /// Inspect fragments of the request URI. You must configure scope and pattern matching filters in  the UriFragment object, to define the fragment of a URI that WAF inspects.  Only the first 8 KB (8192 bytes) of a request's URI fragments and only the first 200 URI fragments are forwarded to WAF for inspection by the underlying host service. You must configure how to handle any oversize URI fragment content in the UriFragment object. WAF applies the pattern matching filters to the cookies that it receives from the underlying host service.
        public let uriFragment: UriFragment?
        /// Inspect the request URI path. This is the part of the web request that identifies a resource, for example, /images/daily-ad.jpg.
        public let uriPath: UriPath?

        @inlinable
        public init(allQueryArguments: AllQueryArguments? = nil, body: Body? = nil, cookies: Cookies? = nil, headerOrder: HeaderOrder? = nil, headers: Headers? = nil, ja3Fingerprint: JA3Fingerprint? = nil, ja4Fingerprint: JA4Fingerprint? = nil, jsonBody: JsonBody? = nil, method: Method? = nil, queryString: QueryString? = nil, singleHeader: SingleHeader? = nil, singleQueryArgument: SingleQueryArgument? = nil, uriFragment: UriFragment? = nil, uriPath: UriPath? = nil) {
            self.allQueryArguments = allQueryArguments
            self.body = body
            self.cookies = cookies
            self.headerOrder = headerOrder
            self.headers = headers
            self.ja3Fingerprint = ja3Fingerprint
            self.ja4Fingerprint = ja4Fingerprint
            self.jsonBody = jsonBody
            self.method = method
            self.queryString = queryString
            self.singleHeader = singleHeader
            self.singleQueryArgument = singleQueryArgument
            self.uriFragment = uriFragment
            self.uriPath = uriPath
        }

        public func validate(name: String) throws {
            try self.cookies?.validate(name: "\(name).cookies")
            try self.headers?.validate(name: "\(name).headers")
            try self.jsonBody?.validate(name: "\(name).jsonBody")
            try self.singleHeader?.validate(name: "\(name).singleHeader")
            try self.singleQueryArgument?.validate(name: "\(name).singleQueryArgument")
        }

        private enum CodingKeys: String, CodingKey {
            case allQueryArguments = "AllQueryArguments"
            case body = "Body"
            case cookies = "Cookies"
            case headerOrder = "HeaderOrder"
            case headers = "Headers"
            case ja3Fingerprint = "JA3Fingerprint"
            case ja4Fingerprint = "JA4Fingerprint"
            case jsonBody = "JsonBody"
            case method = "Method"
            case queryString = "QueryString"
            case singleHeader = "SingleHeader"
            case singleQueryArgument = "SingleQueryArgument"
            case uriFragment = "UriFragment"
            case uriPath = "UriPath"
        }
    }

    public struct FieldToProtect: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the keys to protect for the specified field type. If you don't specify any key, then all keys for the field type are protected.
        public let fieldKeys: [String]?
        /// Specifies the web request component type to protect.
        public let fieldType: FieldToProtectType

        @inlinable
        public init(fieldKeys: [String]? = nil, fieldType: FieldToProtectType) {
            self.fieldKeys = fieldKeys
            self.fieldType = fieldType
        }

        public func validate(name: String) throws {
            try self.fieldKeys?.forEach {
                try validate($0, name: "fieldKeys[]", parent: name, max: 64)
                try validate($0, name: "fieldKeys[]", parent: name, min: 1)
                try validate($0, name: "fieldKeys[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.fieldKeys, name: "fieldKeys", parent: name, max: 100)
        }

        private enum CodingKeys: String, CodingKey {
            case fieldKeys = "FieldKeys"
            case fieldType = "FieldType"
        }
    }

    public struct Filter: AWSEncodableShape & AWSDecodableShape {
        /// How to handle logs that satisfy the filter's conditions and requirement.
        public let behavior: FilterBehavior
        /// Match conditions for the filter.
        public let conditions: [Condition]
        /// Logic to apply to the filtering conditions. You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.
        public let requirement: FilterRequirement

        @inlinable
        public init(behavior: FilterBehavior, conditions: [Condition], requirement: FilterRequirement) {
            self.behavior = behavior
            self.conditions = conditions
            self.requirement = requirement
        }

        public func validate(name: String) throws {
            try self.conditions.forEach {
                try $0.validate(name: "\(name).conditions[]")
            }
            try self.validate(self.conditions, name: "conditions", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case behavior = "Behavior"
            case conditions = "Conditions"
            case requirement = "Requirement"
        }
    }

    public struct FirewallManagerRuleGroup: AWSDecodableShape {
        /// The processing guidance for an Firewall Manager rule. This is like a regular rule Statement, but it can only contain a rule group reference.
        public let firewallManagerStatement: FirewallManagerStatement
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String
        /// The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.  You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement and ManagedRuleGroupStatement.   This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count   matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.
        public let overrideAction: OverrideAction
        /// If you define more than one rule group in the first or last Firewall Manager rule groups, WAF evaluates each request against the rule groups in order, starting from the lowest priority setting. The priorities don't need to be consecutive, but they must all be different.
        public let priority: Int
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(firewallManagerStatement: FirewallManagerStatement, name: String, overrideAction: OverrideAction, priority: Int, visibilityConfig: VisibilityConfig) {
            self.firewallManagerStatement = firewallManagerStatement
            self.name = name
            self.overrideAction = overrideAction
            self.priority = priority
            self.visibilityConfig = visibilityConfig
        }

        private enum CodingKeys: String, CodingKey {
            case firewallManagerStatement = "FirewallManagerStatement"
            case name = "Name"
            case overrideAction = "OverrideAction"
            case priority = "Priority"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct FirewallManagerStatement: AWSDecodableShape {
        /// A statement used by Firewall Manager to run the rules that are defined in a managed rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
        public let managedRuleGroupStatement: ManagedRuleGroupStatement?
        /// A statement used by Firewall Manager to run the rules that are defined in a rule group. This is managed by Firewall Manager for an Firewall Manager WAF policy.
        public let ruleGroupReferenceStatement: RuleGroupReferenceStatement?

        @inlinable
        public init(managedRuleGroupStatement: ManagedRuleGroupStatement? = nil, ruleGroupReferenceStatement: RuleGroupReferenceStatement? = nil) {
            self.managedRuleGroupStatement = managedRuleGroupStatement
            self.ruleGroupReferenceStatement = ruleGroupReferenceStatement
        }

        private enum CodingKeys: String, CodingKey {
            case managedRuleGroupStatement = "ManagedRuleGroupStatement"
            case ruleGroupReferenceStatement = "RuleGroupReferenceStatement"
        }
    }

    public struct ForwardedIPConfig: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.  If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.  You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior
        /// The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this to X-Forwarded-For.  If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
        public let headerName: String

        @inlinable
        public init(fallbackBehavior: FallbackBehavior, headerName: String) {
            self.fallbackBehavior = fallbackBehavior
            self.headerName = headerName
        }

        public func validate(name: String) throws {
            try self.validate(self.headerName, name: "headerName", parent: name, max: 255)
            try self.validate(self.headerName, name: "headerName", parent: name, min: 1)
            try self.validate(self.headerName, name: "headerName", parent: name, pattern: "^[a-zA-Z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
            case headerName = "HeaderName"
        }
    }

    public struct GenerateMobileSdkReleaseUrlRequest: AWSEncodableShape {
        /// The device platform.
        public let platform: Platform
        /// The release version. For the latest available version, specify LATEST.
        public let releaseVersion: String

        @inlinable
        public init(platform: Platform, releaseVersion: String) {
            self.platform = platform
            self.releaseVersion = releaseVersion
        }

        public func validate(name: String) throws {
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, max: 64)
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, min: 1)
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case platform = "Platform"
            case releaseVersion = "ReleaseVersion"
        }
    }

    public struct GenerateMobileSdkReleaseUrlResponse: AWSDecodableShape {
        /// The presigned download URL for the specified SDK release.
        public let url: String?

        @inlinable
        public init(url: String? = nil) {
            self.url = url
        }

        private enum CodingKeys: String, CodingKey {
            case url = "Url"
        }
    }

    public struct GeoMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// An array of two-character country codes that you want to match against, for example, [ "US", "CN" ], from the alpha-2 country ISO codes of the ISO 3166 international standard.  When you use a geo match statement just for the region and country labels that it adds to requests, you still have to supply a country code for the rule to evaluate. In this case, you configure the rule to only count matching requests, but it will still generate logging and count metrics for any matches. You can reduce the logging and metrics that the rule produces by specifying a country that's unlikely to be a source of traffic to your site.
        public let countryCodes: [CountryCode]?
        /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.   If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
        public let forwardedIPConfig: ForwardedIPConfig?

        @inlinable
        public init(countryCodes: [CountryCode]? = nil, forwardedIPConfig: ForwardedIPConfig? = nil) {
            self.countryCodes = countryCodes
            self.forwardedIPConfig = forwardedIPConfig
        }

        public func validate(name: String) throws {
            try self.validate(self.countryCodes, name: "countryCodes", parent: name, min: 1)
            try self.forwardedIPConfig?.validate(name: "\(name).forwardedIPConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case countryCodes = "CountryCodes"
            case forwardedIPConfig = "ForwardedIPConfig"
        }
    }

    public struct GetDecryptedAPIKeyRequest: AWSEncodableShape {
        /// The encrypted API key.
        public let apiKey: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(apiKey: String, scope: Scope) {
            self.apiKey = apiKey
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.apiKey, name: "apiKey", parent: name, max: 2048)
            try self.validate(self.apiKey, name: "apiKey", parent: name, min: 1)
            try self.validate(self.apiKey, name: "apiKey", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case apiKey = "APIKey"
            case scope = "Scope"
        }
    }

    public struct GetDecryptedAPIKeyResponse: AWSDecodableShape {
        /// The date and time that the key was created.
        public let creationTimestamp: Date?
        /// The token domains that are defined in this API key.
        public let tokenDomains: [String]?

        @inlinable
        public init(creationTimestamp: Date? = nil, tokenDomains: [String]? = nil) {
            self.creationTimestamp = creationTimestamp
            self.tokenDomains = tokenDomains
        }

        private enum CodingKeys: String, CodingKey {
            case creationTimestamp = "CreationTimestamp"
            case tokenDomains = "TokenDomains"
        }
    }

    public struct GetIPSetRequest: AWSEncodableShape {
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, name: String, scope: Scope) {
            self.id = id
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct GetIPSetResponse: AWSDecodableShape {
        public let ipSet: IPSet?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?

        @inlinable
        public init(ipSet: IPSet? = nil, lockToken: String? = nil) {
            self.ipSet = ipSet
            self.lockToken = lockToken
        }

        private enum CodingKeys: String, CodingKey {
            case ipSet = "IPSet"
            case lockToken = "LockToken"
        }
    }

    public struct GetLoggingConfigurationRequest: AWSEncodableShape {
        /// The owner of the logging configuration, which must be set to CUSTOMER for the configurations that you manage.  The log scope SECURITY_LAKE indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see  Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.  Default: CUSTOMER
        public let logScope: LogScope?
        /// Used to distinguish between various logging options. Currently, there is one option. Default: WAF_LOGS
        public let logType: LogType?
        /// The Amazon Resource Name (ARN) of the web ACL for which you want to get the LoggingConfiguration.
        public let resourceArn: String

        @inlinable
        public init(logScope: LogScope? = nil, logType: LogType? = nil, resourceArn: String) {
            self.logScope = logScope
            self.logType = logType
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case logScope = "LogScope"
            case logType = "LogType"
            case resourceArn = "ResourceArn"
        }
    }

    public struct GetLoggingConfigurationResponse: AWSDecodableShape {
        /// The LoggingConfiguration for the specified web ACL.
        public let loggingConfiguration: LoggingConfiguration?

        @inlinable
        public init(loggingConfiguration: LoggingConfiguration? = nil) {
            self.loggingConfiguration = loggingConfiguration
        }

        private enum CodingKeys: String, CodingKey {
            case loggingConfiguration = "LoggingConfiguration"
        }
    }

    public struct GetManagedRuleSetRequest: AWSEncodableShape {
        /// A unique identifier for the managed rule set. The ID is returned in the responses to commands like list. You provide it to operations like get and update.
        public let id: String
        /// The name of the managed rule set. You use this, along with the rule set ID, to identify the rule set. This name is assigned to the corresponding managed rule group, which your customers can access and use.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, name: String, scope: Scope) {
            self.id = id
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct GetManagedRuleSetResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The managed rule set that you requested.
        public let managedRuleSet: ManagedRuleSet?

        @inlinable
        public init(lockToken: String? = nil, managedRuleSet: ManagedRuleSet? = nil) {
            self.lockToken = lockToken
            self.managedRuleSet = managedRuleSet
        }

        private enum CodingKeys: String, CodingKey {
            case lockToken = "LockToken"
            case managedRuleSet = "ManagedRuleSet"
        }
    }

    public struct GetMobileSdkReleaseRequest: AWSEncodableShape {
        /// The device platform.
        public let platform: Platform
        /// The release version. For the latest available version, specify LATEST.
        public let releaseVersion: String

        @inlinable
        public init(platform: Platform, releaseVersion: String) {
            self.platform = platform
            self.releaseVersion = releaseVersion
        }

        public func validate(name: String) throws {
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, max: 64)
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, min: 1)
            try self.validate(self.releaseVersion, name: "releaseVersion", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case platform = "Platform"
            case releaseVersion = "ReleaseVersion"
        }
    }

    public struct GetMobileSdkReleaseResponse: AWSDecodableShape {
        /// Information for a specified SDK release, including release notes and tags.
        public let mobileSdkRelease: MobileSdkRelease?

        @inlinable
        public init(mobileSdkRelease: MobileSdkRelease? = nil) {
            self.mobileSdkRelease = mobileSdkRelease
        }

        private enum CodingKeys: String, CodingKey {
            case mobileSdkRelease = "MobileSdkRelease"
        }
    }

    public struct GetPermissionPolicyRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the rule group for which you want to get the policy.
        public let resourceArn: String

        @inlinable
        public init(resourceArn: String) {
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArn = "ResourceArn"
        }
    }

    public struct GetPermissionPolicyResponse: AWSDecodableShape {
        /// The IAM policy that is attached to the specified rule group.
        public let policy: String?

        @inlinable
        public init(policy: String? = nil) {
            self.policy = policy
        }

        private enum CodingKeys: String, CodingKey {
            case policy = "Policy"
        }
    }

    public struct GetRateBasedStatementManagedKeysRequest: AWSEncodableShape {
        /// The name of the rule group reference statement in your web ACL. This is required only when you have the rate-based rule nested inside a rule group.
        public let ruleGroupRuleName: String?
        /// The name of the rate-based rule to get the keys for. If you have the rule defined inside a rule group that you're using in your web ACL, also provide the name of the rule group reference statement in the request parameter RuleGroupRuleName.
        public let ruleName: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let webACLId: String
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let webACLName: String

        @inlinable
        public init(ruleGroupRuleName: String? = nil, ruleName: String, scope: Scope, webACLId: String, webACLName: String) {
            self.ruleGroupRuleName = ruleGroupRuleName
            self.ruleName = ruleName
            self.scope = scope
            self.webACLId = webACLId
            self.webACLName = webACLName
        }

        public func validate(name: String) throws {
            try self.validate(self.ruleGroupRuleName, name: "ruleGroupRuleName", parent: name, max: 128)
            try self.validate(self.ruleGroupRuleName, name: "ruleGroupRuleName", parent: name, min: 1)
            try self.validate(self.ruleGroupRuleName, name: "ruleGroupRuleName", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.ruleName, name: "ruleName", parent: name, max: 128)
            try self.validate(self.ruleName, name: "ruleName", parent: name, min: 1)
            try self.validate(self.ruleName, name: "ruleName", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.webACLId, name: "webACLId", parent: name, max: 36)
            try self.validate(self.webACLId, name: "webACLId", parent: name, min: 1)
            try self.validate(self.webACLId, name: "webACLId", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.webACLName, name: "webACLName", parent: name, max: 128)
            try self.validate(self.webACLName, name: "webACLName", parent: name, min: 1)
            try self.validate(self.webACLName, name: "webACLName", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case ruleGroupRuleName = "RuleGroupRuleName"
            case ruleName = "RuleName"
            case scope = "Scope"
            case webACLId = "WebACLId"
            case webACLName = "WebACLName"
        }
    }

    public struct GetRateBasedStatementManagedKeysResponse: AWSDecodableShape {
        /// The keys that are of Internet Protocol version 4 (IPv4).
        public let managedKeysIPV4: RateBasedStatementManagedKeysIPSet?
        /// The keys that are of Internet Protocol version 6 (IPv6).
        public let managedKeysIPV6: RateBasedStatementManagedKeysIPSet?

        @inlinable
        public init(managedKeysIPV4: RateBasedStatementManagedKeysIPSet? = nil, managedKeysIPV6: RateBasedStatementManagedKeysIPSet? = nil) {
            self.managedKeysIPV4 = managedKeysIPV4
            self.managedKeysIPV6 = managedKeysIPV6
        }

        private enum CodingKeys: String, CodingKey {
            case managedKeysIPV4 = "ManagedKeysIPV4"
            case managedKeysIPV6 = "ManagedKeysIPV6"
        }
    }

    public struct GetRegexPatternSetRequest: AWSEncodableShape {
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// The name of the set. You cannot change the name after you create the set.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(id: String, name: String, scope: Scope) {
            self.id = id
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct GetRegexPatternSetResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        public let regexPatternSet: RegexPatternSet?

        @inlinable
        public init(lockToken: String? = nil, regexPatternSet: RegexPatternSet? = nil) {
            self.lockToken = lockToken
            self.regexPatternSet = regexPatternSet
        }

        private enum CodingKeys: String, CodingKey {
            case lockToken = "LockToken"
            case regexPatternSet = "RegexPatternSet"
        }
    }

    public struct GetRuleGroupRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope?

        @inlinable
        public init(arn: String? = nil, id: String? = nil, name: String? = nil, scope: Scope? = nil) {
            self.arn = arn
            self.id = id
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 2048)
            try self.validate(self.arn, name: "arn", parent: name, min: 20)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "\\S")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case id = "Id"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct GetRuleGroupResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        public let ruleGroup: RuleGroup?

        @inlinable
        public init(lockToken: String? = nil, ruleGroup: RuleGroup? = nil) {
            self.lockToken = lockToken
            self.ruleGroup = ruleGroup
        }

        private enum CodingKeys: String, CodingKey {
            case lockToken = "LockToken"
            case ruleGroup = "RuleGroup"
        }
    }

    public struct GetSampledRequestsRequest: AWSEncodableShape {
        /// The number of requests that you want WAF to return from among the first 5,000 requests that your Amazon Web Services resource received during the time range. If your resource received fewer requests than the value of MaxItems, GetSampledRequests returns information about all of them.
        public let maxItems: Int64
        /// The metric name assigned to the Rule or RuleGroup dimension for which you want a sample of requests.
        public let ruleMetricName: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The start date and time and the end date and time of the range for which you want GetSampledRequests to return a sample of requests. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z". You can specify any time range in the previous three hours. If you specify a start time that's earlier than three hours ago, WAF sets it to three hours ago.
        public let timeWindow: TimeWindow
        /// The Amazon resource name (ARN) of the WebACL for which you want a sample of requests.
        public let webAclArn: String

        @inlinable
        public init(maxItems: Int64, ruleMetricName: String, scope: Scope, timeWindow: TimeWindow, webAclArn: String) {
            self.maxItems = maxItems
            self.ruleMetricName = ruleMetricName
            self.scope = scope
            self.timeWindow = timeWindow
            self.webAclArn = webAclArn
        }

        public func validate(name: String) throws {
            try self.validate(self.maxItems, name: "maxItems", parent: name, max: 500)
            try self.validate(self.maxItems, name: "maxItems", parent: name, min: 1)
            try self.validate(self.ruleMetricName, name: "ruleMetricName", parent: name, max: 255)
            try self.validate(self.ruleMetricName, name: "ruleMetricName", parent: name, min: 1)
            try self.validate(self.ruleMetricName, name: "ruleMetricName", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
            try self.validate(self.webAclArn, name: "webAclArn", parent: name, max: 2048)
            try self.validate(self.webAclArn, name: "webAclArn", parent: name, min: 20)
            try self.validate(self.webAclArn, name: "webAclArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case maxItems = "MaxItems"
            case ruleMetricName = "RuleMetricName"
            case scope = "Scope"
            case timeWindow = "TimeWindow"
            case webAclArn = "WebAclArn"
        }
    }

    public struct GetSampledRequestsResponse: AWSDecodableShape {
        /// The total number of requests from which GetSampledRequests got a sample of MaxItems requests. If PopulationSize is less than MaxItems, the sample includes every request that your Amazon Web Services resource received during the specified time range.
        public let populationSize: Int64?
        /// A complex type that contains detailed information about each of the requests in the sample.
        public let sampledRequests: [SampledHTTPRequest]?
        /// Usually, TimeWindow is the time range that you specified in the GetSampledRequests request. However, if your Amazon Web Services resource received more than 5,000 requests during the time range that you specified in the request, GetSampledRequests returns the time range for the first 5,000 requests. Times are in Coordinated Universal Time (UTC) format.
        public let timeWindow: TimeWindow?

        @inlinable
        public init(populationSize: Int64? = nil, sampledRequests: [SampledHTTPRequest]? = nil, timeWindow: TimeWindow? = nil) {
            self.populationSize = populationSize
            self.sampledRequests = sampledRequests
            self.timeWindow = timeWindow
        }

        private enum CodingKeys: String, CodingKey {
            case populationSize = "PopulationSize"
            case sampledRequests = "SampledRequests"
            case timeWindow = "TimeWindow"
        }
    }

    public struct GetWebACLForResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource whose web ACL you want to retrieve.  The ARN must be in one of the following formats:   For an Application Load Balancer: arn:partition:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id     For an Amazon API Gateway REST API: arn:partition:apigateway:region::/restapis/api-id/stages/stage-name     For an AppSync GraphQL API: arn:partition:appsync:region:account-id:apis/GraphQLApiId     For an Amazon Cognito user pool: arn:partition:cognito-idp:region:account-id:userpool/user-pool-id     For an App Runner service: arn:partition:apprunner:region:account-id:service/apprunner-service-name/apprunner-service-id     For an Amazon Web Services Verified Access instance: arn:partition:ec2:region:account-id:verified-access-instance/instance-id     For an Amplify application: arn:partition:amplify:region:account-id:apps/app-id
        public let resourceArn: String

        @inlinable
        public init(resourceArn: String) {
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArn = "ResourceArn"
        }
    }

    public struct GetWebACLForResourceResponse: AWSDecodableShape {
        /// The web ACL that is associated with the resource. If there is no associated resource, WAF returns a null web ACL.
        public let webACL: WebACL?

        @inlinable
        public init(webACL: WebACL? = nil) {
            self.webACL = webACL
        }

        private enum CodingKeys: String, CodingKey {
            case webACL = "WebACL"
        }
    }

    public struct GetWebACLRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the web ACL that you want to retrieve.
        public let arn: String?
        /// The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope?

        @inlinable
        public init(arn: String? = nil, id: String? = nil, name: String? = nil, scope: Scope? = nil) {
            self.arn = arn
            self.id = id
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 2048)
            try self.validate(self.arn, name: "arn", parent: name, min: 20)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "\\S")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case id = "Id"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct GetWebACLResponse: AWSDecodableShape {
        /// The URL to use in SDK integrations with Amazon Web Services managed rule groups. For example, you can use the integration SDKs with the account takeover prevention managed rule group AWSManagedRulesATPRuleSet and the account creation fraud prevention managed rule group AWSManagedRulesACFPRuleSet. This is only populated if you are using a rule group in your web ACL that integrates with your applications in this way. For more information, see WAF client application integration
        /// in the WAF Developer Guide.
        public let applicationIntegrationURL: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The web ACL specification. You can modify the settings in this web ACL and use it to update this web ACL or create a new one.
        public let webACL: WebACL?

        @inlinable
        public init(applicationIntegrationURL: String? = nil, lockToken: String? = nil, webACL: WebACL? = nil) {
            self.applicationIntegrationURL = applicationIntegrationURL
            self.lockToken = lockToken
            self.webACL = webACL
        }

        private enum CodingKeys: String, CodingKey {
            case applicationIntegrationURL = "ApplicationIntegrationURL"
            case lockToken = "LockToken"
            case webACL = "WebACL"
        }
    }

    public struct HTTPHeader: AWSDecodableShape {
        /// The name of the HTTP header.
        public let name: String?
        /// The value of the HTTP header.
        public let value: String?

        @inlinable
        public init(name: String? = nil, value: String? = nil) {
            self.name = name
            self.value = value
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case value = "Value"
        }
    }

    public struct HTTPRequest: AWSDecodableShape {
        /// The IP address that the request originated from. If the web ACL is associated with a CloudFront distribution, this is the value of one of the following fields in CloudFront access logs:    c-ip, if the viewer did not use an HTTP proxy or a load balancer to send the request    x-forwarded-for, if the viewer did use an HTTP proxy or a load balancer to send the request
        public let clientIP: String?
        /// The two-letter country code for the country that the request originated from. For a current list of country codes, see the Wikipedia entry ISO 3166-1 alpha-2.
        public let country: String?
        /// A complex type that contains the name and value for each header in the sampled web request.
        public let headers: [HTTPHeader]?
        /// The HTTP version specified in the sampled web request, for example, HTTP/1.1.
        public let httpVersion: String?
        /// The HTTP method specified in the sampled web request.
        public let method: String?
        /// The URI path of the request, which identifies the resource, for example, /images/daily-ad.jpg.
        public let uri: String?

        @inlinable
        public init(clientIP: String? = nil, country: String? = nil, headers: [HTTPHeader]? = nil, httpVersion: String? = nil, method: String? = nil, uri: String? = nil) {
            self.clientIP = clientIP
            self.country = country
            self.headers = headers
            self.httpVersion = httpVersion
            self.method = method
            self.uri = uri
        }

        private enum CodingKeys: String, CodingKey {
            case clientIP = "ClientIP"
            case country = "Country"
            case headers = "Headers"
            case httpVersion = "HTTPVersion"
            case method = "Method"
            case uri = "URI"
        }
    }

    public struct HeaderMatchPattern: AWSEncodableShape & AWSDecodableShape {
        /// Inspect all headers.
        public let all: All?
        /// Inspect only the headers whose keys don't match any of the strings specified here.
        public let excludedHeaders: [String]?
        /// Inspect only the headers that have a key that matches one of the strings specified here.
        public let includedHeaders: [String]?

        @inlinable
        public init(all: All? = nil, excludedHeaders: [String]? = nil, includedHeaders: [String]? = nil) {
            self.all = all
            self.excludedHeaders = excludedHeaders
            self.includedHeaders = includedHeaders
        }

        public func validate(name: String) throws {
            try self.excludedHeaders?.forEach {
                try validate($0, name: "excludedHeaders[]", parent: name, max: 64)
                try validate($0, name: "excludedHeaders[]", parent: name, min: 1)
                try validate($0, name: "excludedHeaders[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.excludedHeaders, name: "excludedHeaders", parent: name, max: 199)
            try self.validate(self.excludedHeaders, name: "excludedHeaders", parent: name, min: 1)
            try self.includedHeaders?.forEach {
                try validate($0, name: "includedHeaders[]", parent: name, max: 64)
                try validate($0, name: "includedHeaders[]", parent: name, min: 1)
                try validate($0, name: "includedHeaders[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.includedHeaders, name: "includedHeaders", parent: name, max: 199)
            try self.validate(self.includedHeaders, name: "includedHeaders", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case all = "All"
            case excludedHeaders = "ExcludedHeaders"
            case includedHeaders = "IncludedHeaders"
        }
    }

    public struct HeaderOrder: AWSEncodableShape & AWSDecodableShape {
        /// What WAF should do if the headers determined by your match scope are more numerous or larger than WAF can inspect.  WAF does not support inspecting the entire contents of request headers  when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.  The options for oversize handling are the following:    CONTINUE - Inspect the available headers normally, according to the rule inspection criteria.     MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let oversizeHandling: OversizeHandling

        @inlinable
        public init(oversizeHandling: OversizeHandling) {
            self.oversizeHandling = oversizeHandling
        }

        private enum CodingKeys: String, CodingKey {
            case oversizeHandling = "OversizeHandling"
        }
    }

    public struct Headers: AWSEncodableShape & AWSDecodableShape {
        /// The filter to use to identify the subset of headers to inspect in a web request.  You must specify exactly one setting: either All, IncludedHeaders, or ExcludedHeaders. Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
        public let matchPattern: HeaderMatchPattern
        /// The parts of the headers to match with the rule inspection criteria. If you specify ALL, WAF inspects both keys and values.   All does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys  or the values or both. To require a match in the keys and in the values, use a logical AND statement to combine two match rules, one that inspects the keys and another that inspects the values.
        public let matchScope: MapMatchScope
        /// What WAF should do if the headers determined by your match scope are more numerous or larger than WAF can inspect.  WAF does not support inspecting the entire contents of request headers  when they exceed 8 KB (8192 bytes) or 200 total headers. The underlying host service forwards a maximum of 200 headers and at most 8 KB of header contents to WAF.  The options for oversize handling are the following:    CONTINUE - Inspect the available headers normally, according to the rule inspection criteria.     MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let oversizeHandling: OversizeHandling

        @inlinable
        public init(matchPattern: HeaderMatchPattern, matchScope: MapMatchScope, oversizeHandling: OversizeHandling) {
            self.matchPattern = matchPattern
            self.matchScope = matchScope
            self.oversizeHandling = oversizeHandling
        }

        public func validate(name: String) throws {
            try self.matchPattern.validate(name: "\(name).matchPattern")
        }

        private enum CodingKeys: String, CodingKey {
            case matchPattern = "MatchPattern"
            case matchScope = "MatchScope"
            case oversizeHandling = "OversizeHandling"
        }
    }

    public struct IPSet: AWSDecodableShape {
        /// Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses that you want WAF to inspect for in incoming requests. All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. WAF supports all IPv4 and IPv6 CIDR ranges except for /0.  Example address strings:    For requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.   For requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify  192.0.2.0/24.   For requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128.   For requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64.   For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing. Example JSON Addresses specifications:    Empty array: "Addresses": []    Array with one address: "Addresses": ["192.0.2.44/32"]    Array with three addresses: "Addresses": ["192.0.2.44/32", "192.0.2.0/24", "192.0.0.0/16"]    INVALID specification: "Addresses": [""] INVALID
        public let addresses: [String]
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String
        /// A description of the IP set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// The version of the IP addresses, either IPV4 or IPV6.
        public let ipAddressVersion: IPAddressVersion
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String

        @inlinable
        public init(addresses: [String], arn: String, description: String? = nil, id: String, ipAddressVersion: IPAddressVersion, name: String) {
            self.addresses = addresses
            self.arn = arn
            self.description = description
            self.id = id
            self.ipAddressVersion = ipAddressVersion
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case addresses = "Addresses"
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case ipAddressVersion = "IPAddressVersion"
            case name = "Name"
        }
    }

    public struct IPSetForwardedIPConfig: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if the request doesn't have a valid IP address in the specified position.  If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.  You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior
        /// The name of the HTTP header to use for the IP address. For example, to use the X-Forwarded-For (XFF) header, set this to X-Forwarded-For.  If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
        public let headerName: String
        /// The position in the header to search for the IP address. The header can contain IP addresses of the original client and also of proxies. For example, the header value could be 10.1.1.1, 127.0.0.0, 10.10.10.10 where the first IP address identifies the original client and the rest identify proxies that the request went through.  The options for this setting are the following:    FIRST - Inspect the first IP address in the list of IP addresses in the header. This is usually the client's original IP.   LAST - Inspect the last IP address in the list of IP addresses in the header.   ANY - Inspect all IP addresses in the header for a match. If the header contains more than 10 IP addresses, WAF inspects the last 10.
        public let position: ForwardedIPPosition

        @inlinable
        public init(fallbackBehavior: FallbackBehavior, headerName: String, position: ForwardedIPPosition) {
            self.fallbackBehavior = fallbackBehavior
            self.headerName = headerName
            self.position = position
        }

        public func validate(name: String) throws {
            try self.validate(self.headerName, name: "headerName", parent: name, max: 255)
            try self.validate(self.headerName, name: "headerName", parent: name, min: 1)
            try self.validate(self.headerName, name: "headerName", parent: name, pattern: "^[a-zA-Z0-9-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
            case headerName = "HeaderName"
            case position = "Position"
        }
    }

    public struct IPSetReferenceStatement: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the IPSet that this statement references.
        public let arn: String
        /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.   If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.
        public let ipSetForwardedIPConfig: IPSetForwardedIPConfig?

        @inlinable
        public init(arn: String, ipSetForwardedIPConfig: IPSetForwardedIPConfig? = nil) {
            self.arn = arn
            self.ipSetForwardedIPConfig = ipSetForwardedIPConfig
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 2048)
            try self.validate(self.arn, name: "arn", parent: name, min: 20)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "\\S")
            try self.ipSetForwardedIPConfig?.validate(name: "\(name).ipSetForwardedIPConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case ipSetForwardedIPConfig = "IPSetForwardedIPConfig"
        }
    }

    public struct IPSetSummary: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the IP set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, lockToken: String? = nil, name: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
        }
    }

    public struct ImmunityTimeProperty: AWSEncodableShape & AWSDecodableShape {
        /// The amount of time, in seconds, that a CAPTCHA or challenge timestamp is considered valid by WAF. The default setting is 300.  For the Challenge action, the minimum setting is 300.
        public let immunityTime: Int64

        @inlinable
        public init(immunityTime: Int64) {
            self.immunityTime = immunityTime
        }

        public func validate(name: String) throws {
            try self.validate(self.immunityTime, name: "immunityTime", parent: name, max: 259200)
            try self.validate(self.immunityTime, name: "immunityTime", parent: name, min: 60)
        }

        private enum CodingKeys: String, CodingKey {
            case immunityTime = "ImmunityTime"
        }
    }

    public struct JA3Fingerprint: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if the request doesn't have a JA3 fingerprint.  You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior

        @inlinable
        public init(fallbackBehavior: FallbackBehavior) {
            self.fallbackBehavior = fallbackBehavior
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
        }
    }

    public struct JA4Fingerprint: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if the request doesn't have a JA4 fingerprint.  You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior

        @inlinable
        public init(fallbackBehavior: FallbackBehavior) {
            self.fallbackBehavior = fallbackBehavior
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
        }
    }

    public struct JsonBody: AWSEncodableShape & AWSDecodableShape {
        /// What WAF should do if it fails to completely parse the JSON body. The options are the following:    EVALUATE_AS_STRING - Inspect the body as plain text. WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.   If you don't provide this setting, WAF parses and evaluates the content only up to the first parsing failure that it encounters.   WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for invalid JSON. When  parsing succeeds, WAF doesn't apply the fallback behavior. For more information,  see JSON body  in the WAF Developer Guide.
        public let invalidFallbackBehavior: BodyParsingFallbackBehavior?
        /// The patterns to look for in the JSON body. WAF inspects the results of these pattern matches against the rule inspection criteria.
        public let matchPattern: JsonMatchPattern
        /// The parts of the JSON to match against using the MatchPattern. If you specify ALL, WAF matches against keys and values.   All does not require a match to be found in the keys and a match to be found in the values. It requires a match to be found in the keys  or the values or both. To require a match in the keys and in the values, use a logical AND statement to combine two match rules, one that inspects the keys and another that inspects the values.
        public let matchScope: JsonMatchScope
        /// What WAF should do if the body is larger than WAF can inspect.  WAF does not support inspecting the entire contents of the web request body if the body  exceeds the limit for the resource type. When a web request body is larger than the limit, the underlying host service  only forwards the contents that are within the limit to WAF for inspection.    For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).   For CloudFront, API Gateway, Amazon Cognito, App Runner, and Verified Access, the default limit is 16 KB (16,384 bytes), and  you can increase the limit for each resource type in the web ACL AssociationConfig, for additional processing fees.    For Amplify, use the CloudFront limit.   The options for oversize handling are the following:    CONTINUE - Inspect the available body contents normally, according to the rule inspection criteria.     MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.   You can combine the MATCH or NO_MATCH settings for oversize handling with your rule and web ACL action settings, so that you block any request whose body is over the limit.  Default: CONTINUE
        public let oversizeHandling: OversizeHandling?

        @inlinable
        public init(invalidFallbackBehavior: BodyParsingFallbackBehavior? = nil, matchPattern: JsonMatchPattern, matchScope: JsonMatchScope, oversizeHandling: OversizeHandling? = nil) {
            self.invalidFallbackBehavior = invalidFallbackBehavior
            self.matchPattern = matchPattern
            self.matchScope = matchScope
            self.oversizeHandling = oversizeHandling
        }

        public func validate(name: String) throws {
            try self.matchPattern.validate(name: "\(name).matchPattern")
        }

        private enum CodingKeys: String, CodingKey {
            case invalidFallbackBehavior = "InvalidFallbackBehavior"
            case matchPattern = "MatchPattern"
            case matchScope = "MatchScope"
            case oversizeHandling = "OversizeHandling"
        }
    }

    public struct JsonMatchPattern: AWSEncodableShape & AWSDecodableShape {
        /// Match all of the elements. See also MatchScope in JsonBody.  You must specify either this setting or the IncludedPaths setting, but not both.
        public let all: All?
        /// Match only the specified include paths. See also MatchScope in JsonBody.  Provide the include paths using JSON Pointer syntax. For example, "IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]. For information about this syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript Object Notation (JSON) Pointer.  You must specify either this setting or the All setting, but not both.  Don't use this option to include all paths. Instead, use the All setting.
        public let includedPaths: [String]?

        @inlinable
        public init(all: All? = nil, includedPaths: [String]? = nil) {
            self.all = all
            self.includedPaths = includedPaths
        }

        public func validate(name: String) throws {
            try self.includedPaths?.forEach {
                try validate($0, name: "includedPaths[]", parent: name, max: 512)
                try validate($0, name: "includedPaths[]", parent: name, min: 1)
                try validate($0, name: "includedPaths[]", parent: name, pattern: "^([/])|([/](([^~])|(~[01]))+)$")
            }
            try self.validate(self.includedPaths, name: "includedPaths", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case all = "All"
            case includedPaths = "IncludedPaths"
        }
    }

    public struct Label: AWSEncodableShape & AWSDecodableShape {
        /// The label string.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 1024)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[0-9A-Za-z_\\-:]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct LabelMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// The string to match against. The setting you provide for this depends on the match statement's Scope setting:    If the Scope indicates LABEL, then this specification must include the name and can include any number of preceding namespace specifications and prefix up to providing the fully qualified label name.    If the Scope indicates NAMESPACE, then this specification can include any number of contiguous namespace strings, and can include the entire label namespace prefix from the rule group or web ACL where the label originates.   Labels are case sensitive and components of a label must be separated by colon, for example NS1:NS2:name.
        public let key: String
        /// Specify whether you want to match using the label name or just the namespace.
        public let scope: LabelMatchScope

        @inlinable
        public init(key: String, scope: LabelMatchScope) {
            self.key = key
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.key, name: "key", parent: name, max: 1024)
            try self.validate(self.key, name: "key", parent: name, min: 1)
            try self.validate(self.key, name: "key", parent: name, pattern: "^[0-9A-Za-z_\\-:]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case scope = "Scope"
        }
    }

    public struct LabelNameCondition: AWSEncodableShape & AWSDecodableShape {
        /// The label name that a log record must contain in order to meet the condition. This must be a fully qualified label name. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.
        public let labelName: String

        @inlinable
        public init(labelName: String) {
            self.labelName = labelName
        }

        public func validate(name: String) throws {
            try self.validate(self.labelName, name: "labelName", parent: name, max: 1024)
            try self.validate(self.labelName, name: "labelName", parent: name, min: 1)
            try self.validate(self.labelName, name: "labelName", parent: name, pattern: "^[0-9A-Za-z_\\-:]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case labelName = "LabelName"
        }
    }

    public struct LabelSummary: AWSDecodableShape {
        /// An individual label specification.
        public let name: String?

        @inlinable
        public init(name: String? = nil) {
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct ListAPIKeysRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListAPIKeysResponse: AWSDecodableShape {
        /// The array of key summaries. If you specified a Limit in your request, this might not be the full list.
        public let apiKeySummaries: [APIKeySummary]?
        /// The CAPTCHA application integration URL, for use in your JavaScript implementation.
        public let applicationIntegrationURL: String?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?

        @inlinable
        public init(apiKeySummaries: [APIKeySummary]? = nil, applicationIntegrationURL: String? = nil, nextMarker: String? = nil) {
            self.apiKeySummaries = apiKeySummaries
            self.applicationIntegrationURL = applicationIntegrationURL
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case apiKeySummaries = "APIKeySummaries"
            case applicationIntegrationURL = "ApplicationIntegrationURL"
            case nextMarker = "NextMarker"
        }
    }

    public struct ListAvailableManagedRuleGroupVersionsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
        public let name: String
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String

        @inlinable
        public init(limit: Int? = nil, name: String, nextMarker: String? = nil, scope: Scope, vendorName: String) {
            self.limit = limit
            self.name = name
            self.nextMarker = nextMarker
            self.scope = scope
            self.vendorName = vendorName
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
            try self.validate(self.vendorName, name: "vendorName", parent: name, max: 128)
            try self.validate(self.vendorName, name: "vendorName", parent: name, min: 1)
            try self.validate(self.vendorName, name: "vendorName", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case name = "Name"
            case nextMarker = "NextMarker"
            case scope = "Scope"
            case vendorName = "VendorName"
        }
    }

    public struct ListAvailableManagedRuleGroupVersionsResponse: AWSDecodableShape {
        /// The name of the version that's currently set as the default.
        public let currentDefaultVersion: String?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// The versions that are currently available for the specified managed rule group. If you specified a Limit in your request, this might not be the full list.
        public let versions: [ManagedRuleGroupVersion]?

        @inlinable
        public init(currentDefaultVersion: String? = nil, nextMarker: String? = nil, versions: [ManagedRuleGroupVersion]? = nil) {
            self.currentDefaultVersion = currentDefaultVersion
            self.nextMarker = nextMarker
            self.versions = versions
        }

        private enum CodingKeys: String, CodingKey {
            case currentDefaultVersion = "CurrentDefaultVersion"
            case nextMarker = "NextMarker"
            case versions = "Versions"
        }
    }

    public struct ListAvailableManagedRuleGroupsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListAvailableManagedRuleGroupsResponse: AWSDecodableShape {
        /// Array of managed rule groups that you can use. If you specified a Limit in your request, this might not be the full list.
        public let managedRuleGroups: [ManagedRuleGroupSummary]?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?

        @inlinable
        public init(managedRuleGroups: [ManagedRuleGroupSummary]? = nil, nextMarker: String? = nil) {
            self.managedRuleGroups = managedRuleGroups
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case managedRuleGroups = "ManagedRuleGroups"
            case nextMarker = "NextMarker"
        }
    }

    public struct ListIPSetsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListIPSetsResponse: AWSDecodableShape {
        /// Array of IPSets. If you specified a Limit in your request, this might not be the full list.
        public let ipSets: [IPSetSummary]?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?

        @inlinable
        public init(ipSets: [IPSetSummary]? = nil, nextMarker: String? = nil) {
            self.ipSets = ipSets
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case ipSets = "IPSets"
            case nextMarker = "NextMarker"
        }
    }

    public struct ListLoggingConfigurationsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// The owner of the logging configuration, which must be set to CUSTOMER for the configurations that you manage.  The log scope SECURITY_LAKE indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see  Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.  Default: CUSTOMER
        public let logScope: LogScope?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, logScope: LogScope? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.logScope = logScope
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case logScope = "LogScope"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListLoggingConfigurationsResponse: AWSDecodableShape {
        /// Array of logging configurations. If you specified a Limit in your request, this might not be the full list.
        public let loggingConfigurations: [LoggingConfiguration]?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?

        @inlinable
        public init(loggingConfigurations: [LoggingConfiguration]? = nil, nextMarker: String? = nil) {
            self.loggingConfigurations = loggingConfigurations
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case loggingConfigurations = "LoggingConfigurations"
            case nextMarker = "NextMarker"
        }
    }

    public struct ListManagedRuleSetsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListManagedRuleSetsResponse: AWSDecodableShape {
        /// Your managed rule sets. If you specified a Limit in your request, this might not be the full list.
        public let managedRuleSets: [ManagedRuleSetSummary]?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?

        @inlinable
        public init(managedRuleSets: [ManagedRuleSetSummary]? = nil, nextMarker: String? = nil) {
            self.managedRuleSets = managedRuleSets
            self.nextMarker = nextMarker
        }

        private enum CodingKeys: String, CodingKey {
            case managedRuleSets = "ManagedRuleSets"
            case nextMarker = "NextMarker"
        }
    }

    public struct ListMobileSdkReleasesRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// The device platform to retrieve the list for.
        public let platform: Platform

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, platform: Platform) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.platform = platform
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case platform = "Platform"
        }
    }

    public struct ListMobileSdkReleasesResponse: AWSDecodableShape {
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// The high level information for the available SDK releases. If you specified a Limit in your request, this might not be the full list.
        public let releaseSummaries: [ReleaseSummary]?

        @inlinable
        public init(nextMarker: String? = nil, releaseSummaries: [ReleaseSummary]? = nil) {
            self.nextMarker = nextMarker
            self.releaseSummaries = releaseSummaries
        }

        private enum CodingKeys: String, CodingKey {
            case nextMarker = "NextMarker"
            case releaseSummaries = "ReleaseSummaries"
        }
    }

    public struct ListRegexPatternSetsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListRegexPatternSetsResponse: AWSDecodableShape {
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Array of regex pattern sets. If you specified a Limit in your request, this might not be the full list.
        public let regexPatternSets: [RegexPatternSetSummary]?

        @inlinable
        public init(nextMarker: String? = nil, regexPatternSets: [RegexPatternSetSummary]? = nil) {
            self.nextMarker = nextMarker
            self.regexPatternSets = regexPatternSets
        }

        private enum CodingKeys: String, CodingKey {
            case nextMarker = "NextMarker"
            case regexPatternSets = "RegexPatternSets"
        }
    }

    public struct ListResourcesForWebACLRequest: AWSEncodableShape {
        /// Retrieves the web ACLs that are used by the specified resource type.  For Amazon CloudFront, don't use this call. Instead, use the CloudFront call ListDistributionsByWebACLId. For information, see ListDistributionsByWebACLId in the Amazon CloudFront API Reference.   If you don't provide a resource type, the call uses the resource type APPLICATION_LOAD_BALANCER.   Default: APPLICATION_LOAD_BALANCER
        public let resourceType: ResourceType?
        /// The Amazon Resource Name (ARN) of the web ACL.
        public let webACLArn: String

        @inlinable
        public init(resourceType: ResourceType? = nil, webACLArn: String) {
            self.resourceType = resourceType
            self.webACLArn = webACLArn
        }

        public func validate(name: String) throws {
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, max: 2048)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, min: 20)
            try self.validate(self.webACLArn, name: "webACLArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case resourceType = "ResourceType"
            case webACLArn = "WebACLArn"
        }
    }

    public struct ListResourcesForWebACLResponse: AWSDecodableShape {
        /// The array of Amazon Resource Names (ARNs) of the associated resources.
        public let resourceArns: [String]?

        @inlinable
        public init(resourceArns: [String]? = nil) {
            self.resourceArns = resourceArns
        }

        private enum CodingKeys: String, CodingKey {
            case resourceArns = "ResourceArns"
        }
    }

    public struct ListRuleGroupsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListRuleGroupsResponse: AWSDecodableShape {
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Array of rule groups. If you specified a Limit in your request, this might not be the full list.
        public let ruleGroups: [RuleGroupSummary]?

        @inlinable
        public init(nextMarker: String? = nil, ruleGroups: [RuleGroupSummary]? = nil) {
            self.nextMarker = nextMarker
            self.ruleGroups = ruleGroups
        }

        private enum CodingKeys: String, CodingKey {
            case nextMarker = "NextMarker"
            case ruleGroups = "RuleGroups"
        }
    }

    public struct ListTagsForResourceRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceARN: String

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, resourceARN: String) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.resourceARN = resourceARN
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, max: 2048)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, min: 20)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case resourceARN = "ResourceARN"
        }
    }

    public struct ListTagsForResourceResponse: AWSDecodableShape {
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// The collection of tagging definitions for the resource. If you specified a Limit in your request, this might not be the full list.
        public let tagInfoForResource: TagInfoForResource?

        @inlinable
        public init(nextMarker: String? = nil, tagInfoForResource: TagInfoForResource? = nil) {
            self.nextMarker = nextMarker
            self.tagInfoForResource = tagInfoForResource
        }

        private enum CodingKeys: String, CodingKey {
            case nextMarker = "NextMarker"
            case tagInfoForResource = "TagInfoForResource"
        }
    }

    public struct ListWebACLsRequest: AWSEncodableShape {
        /// The maximum number of objects that you want WAF to return for this request. If more  objects are available, in the response, WAF provides a  NextMarker value that you can use in a subsequent call to get the next batch of objects.
        public let limit: Int?
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(limit: Int? = nil, nextMarker: String? = nil, scope: Scope) {
            self.limit = limit
            self.nextMarker = nextMarker
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.limit, name: "limit", parent: name, max: 100)
            try self.validate(self.limit, name: "limit", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, max: 256)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, min: 1)
            try self.validate(self.nextMarker, name: "nextMarker", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case limit = "Limit"
            case nextMarker = "NextMarker"
            case scope = "Scope"
        }
    }

    public struct ListWebACLsResponse: AWSDecodableShape {
        /// When you request a list of objects with a Limit setting, if the number of objects that are still available for retrieval exceeds the limit, WAF returns a NextMarker  value in the response. To retrieve the next batch of objects, provide the marker from the prior call in your next request.
        public let nextMarker: String?
        /// Array of web ACLs. If you specified a Limit in your request, this might not be the full list.
        public let webACLs: [WebACLSummary]?

        @inlinable
        public init(nextMarker: String? = nil, webACLs: [WebACLSummary]? = nil) {
            self.nextMarker = nextMarker
            self.webACLs = webACLs
        }

        private enum CodingKeys: String, CodingKey {
            case nextMarker = "NextMarker"
            case webACLs = "WebACLs"
        }
    }

    public struct LoggingConfiguration: AWSEncodableShape & AWSDecodableShape {
        /// The logging destination configuration that you want to associate with the web ACL.  You can associate one logging destination to a web ACL.
        public let logDestinationConfigs: [String]
        /// Filtering that specifies which web requests are kept in the logs and which are dropped. You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.
        public let loggingFilter: LoggingFilter?
        /// The owner of the logging configuration, which must be set to CUSTOMER for the configurations that you manage.  The log scope SECURITY_LAKE indicates a configuration that is managed through Amazon Security Lake. You can use Security Lake to collect log and event data from various sources for normalization, analysis, and management. For information, see  Collecting data from Amazon Web Services services in the Amazon Security Lake user guide.  Default: CUSTOMER
        public let logScope: LogScope?
        /// Used to distinguish between various logging options. Currently, there is one option. Default: WAF_LOGS
        public let logType: LogType?
        /// Indicates whether the logging configuration was created by Firewall Manager, as part of an WAF policy configuration. If true, only Firewall Manager can modify or delete the configuration.  The logging configuration can be created by Firewall Manager for use with any web ACL that Firewall Manager is using for an WAF policy.  Web ACLs that Firewall Manager creates and uses have their ManagedByFirewallManager property set to true. Web ACLs that were created  by a customer account and then retrofitted by Firewall Manager for use by a policy have their RetrofittedByFirewallManager property set to true.  For either case, any corresponding logging configuration will indicate ManagedByFirewallManager.
        public let managedByFirewallManager: Bool?
        /// The parts of the request that you want to keep out of the logs. For example, if you redact the SingleHeader field, the HEADER field in the logs will be REDACTED for all rules that use the SingleHeader FieldToMatch setting.  If you configure data protection for the web ACL, the protection applies to the data that WAF sends to the logs.  Redaction applies only to the component that's specified in the rule's FieldToMatch setting, so the SingleHeader redaction  doesn't apply to rules that use the Headers FieldToMatch.  You can specify only the following fields for redaction: UriPath, QueryString, SingleHeader, and Method.   This setting has no impact on request sampling. You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration  or by configuring data protection for the web ACL.
        public let redactedFields: [FieldToMatch]?
        /// The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs.
        public let resourceArn: String

        @inlinable
        public init(logDestinationConfigs: [String], loggingFilter: LoggingFilter? = nil, logScope: LogScope? = nil, logType: LogType? = nil, managedByFirewallManager: Bool? = nil, redactedFields: [FieldToMatch]? = nil, resourceArn: String) {
            self.logDestinationConfigs = logDestinationConfigs
            self.loggingFilter = loggingFilter
            self.logScope = logScope
            self.logType = logType
            self.managedByFirewallManager = managedByFirewallManager
            self.redactedFields = redactedFields
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.logDestinationConfigs.forEach {
                try validate($0, name: "logDestinationConfigs[]", parent: name, max: 2048)
                try validate($0, name: "logDestinationConfigs[]", parent: name, min: 20)
                try validate($0, name: "logDestinationConfigs[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.logDestinationConfigs, name: "logDestinationConfigs", parent: name, max: 100)
            try self.validate(self.logDestinationConfigs, name: "logDestinationConfigs", parent: name, min: 1)
            try self.loggingFilter?.validate(name: "\(name).loggingFilter")
            try self.redactedFields?.forEach {
                try $0.validate(name: "\(name).redactedFields[]")
            }
            try self.validate(self.redactedFields, name: "redactedFields", parent: name, max: 100)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case logDestinationConfigs = "LogDestinationConfigs"
            case loggingFilter = "LoggingFilter"
            case logScope = "LogScope"
            case logType = "LogType"
            case managedByFirewallManager = "ManagedByFirewallManager"
            case redactedFields = "RedactedFields"
            case resourceArn = "ResourceArn"
        }
    }

    public struct LoggingFilter: AWSEncodableShape & AWSDecodableShape {
        /// Default handling for logs that don't match any of the specified filtering conditions.
        public let defaultBehavior: FilterBehavior
        /// The filters that you want to apply to the logs.
        public let filters: [Filter]

        @inlinable
        public init(defaultBehavior: FilterBehavior, filters: [Filter]) {
            self.defaultBehavior = defaultBehavior
            self.filters = filters
        }

        public func validate(name: String) throws {
            try self.filters.forEach {
                try $0.validate(name: "\(name).filters[]")
            }
            try self.validate(self.filters, name: "filters", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case defaultBehavior = "DefaultBehavior"
            case filters = "Filters"
        }
    }

    public struct ManagedProductDescriptor: AWSDecodableShape {
        /// Indicates whether the rule group provides an advanced set of protections, such as the the Amazon Web Services Managed Rules rule groups that  are used for WAF intelligent threat mitigation.
        public let isAdvancedManagedRuleSet: Bool?
        /// Indicates whether the rule group is versioned.
        public let isVersioningSupported: Bool?
        /// The name of the managed rule group. For example, AWSManagedRulesAnonymousIpList or AWSManagedRulesATPRuleSet.
        public let managedRuleSetName: String?
        /// A short description of the managed rule group.
        public let productDescription: String?
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let productId: String?
        /// For Amazon Web Services Marketplace managed rule groups only, the link to the rule group product page.
        public let productLink: String?
        /// The display name for the managed rule group. For example, Anonymous IP list or Account takeover prevention.
        public let productTitle: String?
        /// The Amazon resource name (ARN) of the Amazon Simple Notification Service SNS topic that's used to provide notification of changes to the managed rule group. You can subscribe to the SNS topic to receive notifications when the managed rule group is modified, such as for new versions and for version expiration. For more information, see the Amazon Simple Notification Service Developer Guide.
        public let snsTopicArn: String?
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String?

        @inlinable
        public init(isAdvancedManagedRuleSet: Bool? = nil, isVersioningSupported: Bool? = nil, managedRuleSetName: String? = nil, productDescription: String? = nil, productId: String? = nil, productLink: String? = nil, productTitle: String? = nil, snsTopicArn: String? = nil, vendorName: String? = nil) {
            self.isAdvancedManagedRuleSet = isAdvancedManagedRuleSet
            self.isVersioningSupported = isVersioningSupported
            self.managedRuleSetName = managedRuleSetName
            self.productDescription = productDescription
            self.productId = productId
            self.productLink = productLink
            self.productTitle = productTitle
            self.snsTopicArn = snsTopicArn
            self.vendorName = vendorName
        }

        private enum CodingKeys: String, CodingKey {
            case isAdvancedManagedRuleSet = "IsAdvancedManagedRuleSet"
            case isVersioningSupported = "IsVersioningSupported"
            case managedRuleSetName = "ManagedRuleSetName"
            case productDescription = "ProductDescription"
            case productId = "ProductId"
            case productLink = "ProductLink"
            case productTitle = "ProductTitle"
            case snsTopicArn = "SnsTopicArn"
            case vendorName = "VendorName"
        }
    }

    public struct ManagedRuleGroupConfig: AWSEncodableShape & AWSDecodableShape {
        /// Additional configuration for using the account creation fraud prevention (ACFP) managed rule group, AWSManagedRulesACFPRuleSet.  Use this to provide account creation request information to the rule group. For web ACLs that protect CloudFront distributions, use this to also provide the information about how your distribution responds to account creation requests.  For information  about using the ACFP managed rule group, see WAF Fraud Control account creation fraud prevention (ACFP) rule group  and WAF Fraud Control account creation fraud prevention (ACFP) in the WAF Developer Guide.
        public let awsManagedRulesACFPRuleSet: AWSManagedRulesACFPRuleSet?
        /// Additional configuration for using the anti-DDoS managed rule group, AWSManagedRulesAntiDDoSRuleSet.  Use this to configure anti-DDoS behavior for the rule group.  For information  about using the anti-DDoS managed rule group, see WAF Anti-DDoS rule group  and Distributed Denial of Service (DDoS) prevention in the WAF Developer Guide.
        public let awsManagedRulesAntiDDoSRuleSet: AWSManagedRulesAntiDDoSRuleSet?
        /// Additional configuration for using the account takeover prevention (ATP) managed rule group, AWSManagedRulesATPRuleSet.  Use this to provide login request information to the rule group. For web ACLs that protect CloudFront distributions, use this to also provide the information about how your distribution responds to login requests.  This configuration replaces the individual configuration fields in ManagedRuleGroupConfig and provides additional feature configuration.  For information  about using the ATP managed rule group, see WAF Fraud Control account takeover prevention (ATP) rule group  and WAF Fraud Control account takeover prevention (ATP) in the WAF Developer Guide.
        public let awsManagedRulesATPRuleSet: AWSManagedRulesATPRuleSet?
        /// Additional configuration for using the Bot Control managed rule group. Use this to specify the  inspection level that you want to use. For information  about using the Bot Control managed rule group, see WAF Bot Control rule group  and WAF Bot Control in the WAF Developer Guide.
        public let awsManagedRulesBotControlRuleSet: AWSManagedRulesBotControlRuleSet?
        ///  Instead of this setting, provide your configuration under AWSManagedRulesATPRuleSet.
        public let loginPath: String?
        ///  Instead of this setting, provide your configuration under the request inspection configuration for AWSManagedRulesATPRuleSet or AWSManagedRulesACFPRuleSet.
        public let passwordField: PasswordField?
        ///  Instead of this setting, provide your configuration under the request inspection configuration for AWSManagedRulesATPRuleSet or AWSManagedRulesACFPRuleSet.
        public let payloadType: PayloadType?
        ///  Instead of this setting, provide your configuration under the request inspection configuration for AWSManagedRulesATPRuleSet or AWSManagedRulesACFPRuleSet.
        public let usernameField: UsernameField?

        @inlinable
        public init(awsManagedRulesACFPRuleSet: AWSManagedRulesACFPRuleSet? = nil, awsManagedRulesAntiDDoSRuleSet: AWSManagedRulesAntiDDoSRuleSet? = nil, awsManagedRulesATPRuleSet: AWSManagedRulesATPRuleSet? = nil, awsManagedRulesBotControlRuleSet: AWSManagedRulesBotControlRuleSet? = nil) {
            self.awsManagedRulesACFPRuleSet = awsManagedRulesACFPRuleSet
            self.awsManagedRulesAntiDDoSRuleSet = awsManagedRulesAntiDDoSRuleSet
            self.awsManagedRulesATPRuleSet = awsManagedRulesATPRuleSet
            self.awsManagedRulesBotControlRuleSet = awsManagedRulesBotControlRuleSet
            self.loginPath = nil
            self.passwordField = nil
            self.payloadType = nil
            self.usernameField = nil
        }

        @available(*, deprecated, message: "Members loginPath, passwordField, payloadType, usernameField have been deprecated")
        @inlinable
        public init(awsManagedRulesACFPRuleSet: AWSManagedRulesACFPRuleSet? = nil, awsManagedRulesAntiDDoSRuleSet: AWSManagedRulesAntiDDoSRuleSet? = nil, awsManagedRulesATPRuleSet: AWSManagedRulesATPRuleSet? = nil, awsManagedRulesBotControlRuleSet: AWSManagedRulesBotControlRuleSet? = nil, loginPath: String? = nil, passwordField: PasswordField? = nil, payloadType: PayloadType? = nil, usernameField: UsernameField? = nil) {
            self.awsManagedRulesACFPRuleSet = awsManagedRulesACFPRuleSet
            self.awsManagedRulesAntiDDoSRuleSet = awsManagedRulesAntiDDoSRuleSet
            self.awsManagedRulesATPRuleSet = awsManagedRulesATPRuleSet
            self.awsManagedRulesBotControlRuleSet = awsManagedRulesBotControlRuleSet
            self.loginPath = loginPath
            self.passwordField = passwordField
            self.payloadType = payloadType
            self.usernameField = usernameField
        }

        public func validate(name: String) throws {
            try self.awsManagedRulesACFPRuleSet?.validate(name: "\(name).awsManagedRulesACFPRuleSet")
            try self.awsManagedRulesAntiDDoSRuleSet?.validate(name: "\(name).awsManagedRulesAntiDDoSRuleSet")
            try self.awsManagedRulesATPRuleSet?.validate(name: "\(name).awsManagedRulesATPRuleSet")
            try self.validate(self.loginPath, name: "loginPath", parent: name, max: 256)
            try self.validate(self.loginPath, name: "loginPath", parent: name, min: 1)
            try self.validate(self.loginPath, name: "loginPath", parent: name, pattern: "\\S")
            try self.passwordField?.validate(name: "\(name).passwordField")
            try self.usernameField?.validate(name: "\(name).usernameField")
        }

        private enum CodingKeys: String, CodingKey {
            case awsManagedRulesACFPRuleSet = "AWSManagedRulesACFPRuleSet"
            case awsManagedRulesAntiDDoSRuleSet = "AWSManagedRulesAntiDDoSRuleSet"
            case awsManagedRulesATPRuleSet = "AWSManagedRulesATPRuleSet"
            case awsManagedRulesBotControlRuleSet = "AWSManagedRulesBotControlRuleSet"
            case loginPath = "LoginPath"
            case passwordField = "PasswordField"
            case payloadType = "PayloadType"
            case usernameField = "UsernameField"
        }
    }

    public final class ManagedRuleGroupStatement: AWSEncodableShape & AWSDecodableShape {
        /// Rules in the referenced rule group whose actions are set to Count.   Instead of this option, use RuleActionOverrides. It accepts any valid action setting, including Count.
        public let excludedRules: [ExcludedRule]?
        /// Additional information that's used by a managed rule group. Many managed rule groups don't require this. The rule groups used for intelligent threat mitigation require additional configuration:    Use the AWSManagedRulesACFPRuleSet configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields.    Use the AWSManagedRulesAntiDDoSRuleSet configuration object to configure the anti-DDoS managed rule group. The configuration includes the sensitivity levels to use in the rules that typically block and challenge requests that might be participating in DDoS attacks and the specification to use to indicate whether a request can handle a silent browser challenge.    Use the AWSManagedRulesATPRuleSet configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password.    Use the AWSManagedRulesBotControlRuleSet configuration object to configure the  protection level that you want the Bot Control rule group to use.
        public let managedRuleGroupConfigs: [ManagedRuleGroupConfig]?
        /// The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
        public let name: String
        /// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.   Verify the rule names in your overrides carefully. With managed rule groups, WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.  You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
        public let ruleActionOverrides: [RuleActionOverride]?
        /// An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group. Requests are only evaluated by the rule group if they match the scope-down statement. You can use any nestable Statement in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.
        public let scopeDownStatement: Statement?
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String
        /// The version of the managed rule group to use. If you specify this, the version setting is fixed until you change it. If you don't specify this, WAF uses the vendor's default version, and then keeps the version at the vendor's default when the vendor updates the managed rule group settings.
        public let version: String?

        @inlinable
        public init(excludedRules: [ExcludedRule]? = nil, managedRuleGroupConfigs: [ManagedRuleGroupConfig]? = nil, name: String, ruleActionOverrides: [RuleActionOverride]? = nil, scopeDownStatement: Statement? = nil, vendorName: String, version: String? = nil) {
            self.excludedRules = excludedRules
            self.managedRuleGroupConfigs = managedRuleGroupConfigs
            self.name = name
            self.ruleActionOverrides = ruleActionOverrides
            self.scopeDownStatement = scopeDownStatement
            self.vendorName = vendorName
            self.version = version
        }

        public func validate(name: String) throws {
            try self.excludedRules?.forEach {
                try $0.validate(name: "\(name).excludedRules[]")
            }
            try self.validate(self.excludedRules, name: "excludedRules", parent: name, max: 100)
            try self.managedRuleGroupConfigs?.forEach {
                try $0.validate(name: "\(name).managedRuleGroupConfigs[]")
            }
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.ruleActionOverrides?.forEach {
                try $0.validate(name: "\(name).ruleActionOverrides[]")
            }
            try self.validate(self.ruleActionOverrides, name: "ruleActionOverrides", parent: name, max: 100)
            try self.scopeDownStatement?.validate(name: "\(name).scopeDownStatement")
            try self.validate(self.vendorName, name: "vendorName", parent: name, max: 128)
            try self.validate(self.vendorName, name: "vendorName", parent: name, min: 1)
            try self.validate(self.vendorName, name: "vendorName", parent: name, pattern: "\\S")
            try self.validate(self.version, name: "version", parent: name, max: 64)
            try self.validate(self.version, name: "version", parent: name, min: 1)
            try self.validate(self.version, name: "version", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case excludedRules = "ExcludedRules"
            case managedRuleGroupConfigs = "ManagedRuleGroupConfigs"
            case name = "Name"
            case ruleActionOverrides = "RuleActionOverrides"
            case scopeDownStatement = "ScopeDownStatement"
            case vendorName = "VendorName"
            case version = "Version"
        }
    }

    public struct ManagedRuleGroupSummary: AWSDecodableShape {
        /// The description of the managed rule group, provided by Amazon Web Services Managed Rules or the Amazon Web Services Marketplace seller who manages it.
        public let description: String?
        /// The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
        public let name: String?
        /// The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
        public let vendorName: String?
        /// Indicates whether the managed rule group is versioned. If it is, you can retrieve the versions list by calling ListAvailableManagedRuleGroupVersions.
        public let versioningSupported: Bool?

        @inlinable
        public init(description: String? = nil, name: String? = nil, vendorName: String? = nil, versioningSupported: Bool? = nil) {
            self.description = description
            self.name = name
            self.vendorName = vendorName
            self.versioningSupported = versioningSupported
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case name = "Name"
            case vendorName = "VendorName"
            case versioningSupported = "VersioningSupported"
        }
    }

    public struct ManagedRuleGroupVersion: AWSDecodableShape {
        /// The date and time that the managed rule group owner updated the rule group version information.
        public let lastUpdateTimestamp: Date?
        /// The version name.
        public let name: String?

        @inlinable
        public init(lastUpdateTimestamp: Date? = nil, name: String? = nil) {
            self.lastUpdateTimestamp = lastUpdateTimestamp
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case lastUpdateTimestamp = "LastUpdateTimestamp"
            case name = "Name"
        }
    }

    public struct ManagedRuleSet: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String
        /// A description of the set that helps with identification.
        public let description: String?
        /// A unique identifier for the managed rule set. The ID is returned in the responses to commands like list. You provide it to operations like get and update.
        public let id: String
        /// The label namespace prefix for the managed rule groups that are offered to customers from this managed rule set. All labels that are added by rules in the managed rule group have this prefix.    The syntax for the label namespace prefix for a managed rule group is the following:   awswaf:managed:::   When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:   :
        public let labelNamespace: String?
        /// The name of the managed rule set. You use this, along with the rule set ID, to identify the rule set. This name is assigned to the corresponding managed rule group, which your customers can access and use.
        public let name: String
        /// The versions of this managed rule set that are available for use by customers.
        public let publishedVersions: [String: ManagedRuleSetVersion]?
        /// The version that you would like your customers to use.
        public let recommendedVersion: String?

        @inlinable
        public init(arn: String, description: String? = nil, id: String, labelNamespace: String? = nil, name: String, publishedVersions: [String: ManagedRuleSetVersion]? = nil, recommendedVersion: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.labelNamespace = labelNamespace
            self.name = name
            self.publishedVersions = publishedVersions
            self.recommendedVersion = recommendedVersion
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case labelNamespace = "LabelNamespace"
            case name = "Name"
            case publishedVersions = "PublishedVersions"
            case recommendedVersion = "RecommendedVersion"
        }
    }

    public struct ManagedRuleSetSummary: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the set that helps with identification.
        public let description: String?
        /// A unique identifier for the managed rule set. The ID is returned in the responses to commands like list. You provide it to operations like get and update.
        public let id: String?
        /// The label namespace prefix for the managed rule groups that are offered to customers from this managed rule set. All labels that are added by rules in the managed rule group have this prefix.    The syntax for the label namespace prefix for a managed rule group is the following:   awswaf:managed:::   When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:   :
        public let labelNamespace: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The name of the managed rule set. You use this, along with the rule set ID, to identify the rule set. This name is assigned to the corresponding managed rule group, which your customers can access and use.
        public let name: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, labelNamespace: String? = nil, lockToken: String? = nil, name: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.labelNamespace = labelNamespace
            self.lockToken = lockToken
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case labelNamespace = "LabelNamespace"
            case lockToken = "LockToken"
            case name = "Name"
        }
    }

    public struct ManagedRuleSetVersion: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the vendor rule group that's used to define the published version of your managed rule group.
        public let associatedRuleGroupArn: String?
        /// The web ACL capacity units (WCUs) required for this rule group. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.  Simple rules that cost little to run use fewer WCUs than more complex rules
        /// 				that use more processing power.
        /// 				Rule group capacity is fixed at creation, which helps users plan their   web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU)  in the WAF Developer Guide.
        public let capacity: Int64?
        /// The time that this version is set to expire. Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
        public let expiryTimestamp: Date?
        /// The amount of time you expect this version of your managed rule group to last, in days.
        public let forecastedLifetime: Int?
        /// The last time that you updated this version.  Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
        public let lastUpdateTimestamp: Date?
        /// The time that you first published this version.  Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
        public let publishTimestamp: Date?

        @inlinable
        public init(associatedRuleGroupArn: String? = nil, capacity: Int64? = nil, expiryTimestamp: Date? = nil, forecastedLifetime: Int? = nil, lastUpdateTimestamp: Date? = nil, publishTimestamp: Date? = nil) {
            self.associatedRuleGroupArn = associatedRuleGroupArn
            self.capacity = capacity
            self.expiryTimestamp = expiryTimestamp
            self.forecastedLifetime = forecastedLifetime
            self.lastUpdateTimestamp = lastUpdateTimestamp
            self.publishTimestamp = publishTimestamp
        }

        private enum CodingKeys: String, CodingKey {
            case associatedRuleGroupArn = "AssociatedRuleGroupArn"
            case capacity = "Capacity"
            case expiryTimestamp = "ExpiryTimestamp"
            case forecastedLifetime = "ForecastedLifetime"
            case lastUpdateTimestamp = "LastUpdateTimestamp"
            case publishTimestamp = "PublishTimestamp"
        }
    }

    public struct Method: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct MobileSdkRelease: AWSDecodableShape {
        /// Notes describing the release.
        public let releaseNotes: String?
        /// The release version.
        public let releaseVersion: String?
        /// Tags that are associated with the release.
        public let tags: [Tag]?
        /// The timestamp of the release.
        public let timestamp: Date?

        @inlinable
        public init(releaseNotes: String? = nil, releaseVersion: String? = nil, tags: [Tag]? = nil, timestamp: Date? = nil) {
            self.releaseNotes = releaseNotes
            self.releaseVersion = releaseVersion
            self.tags = tags
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case releaseNotes = "ReleaseNotes"
            case releaseVersion = "ReleaseVersion"
            case tags = "Tags"
            case timestamp = "Timestamp"
        }
    }

    public struct NoneAction: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public final class NotStatement: AWSEncodableShape & AWSDecodableShape {
        /// The statement to negate. You can use any statement that can be nested.
        public let statement: Statement

        @inlinable
        public init(statement: Statement) {
            self.statement = statement
        }

        public func validate(name: String) throws {
            try self.statement.validate(name: "\(name).statement")
        }

        private enum CodingKeys: String, CodingKey {
            case statement = "Statement"
        }
    }

    public struct OnSourceDDoSProtectionConfig: AWSEncodableShape & AWSDecodableShape {
        /// The level of DDoS protection that applies to web ACLs associated with Application Load Balancers. ACTIVE_UNDER_DDOS protection is enabled by default whenever a web ACL is associated with an Application Load Balancer.  In the event that an Application Load Balancer experiences high-load conditions or suspected DDoS attacks, the ACTIVE_UNDER_DDOS protection automatically rate limits traffic from known low reputation sources without disrupting Application Load Balancer availability.  ALWAYS_ON protection provides constant, always-on monitoring of known low reputation sources for suspected DDoS attacks. While this provides a higher level of protection, there may be potential impacts on legitimate traffic.
        public let albLowReputationMode: LowReputationMode

        @inlinable
        public init(albLowReputationMode: LowReputationMode) {
            self.albLowReputationMode = albLowReputationMode
        }

        private enum CodingKeys: String, CodingKey {
            case albLowReputationMode = "ALBLowReputationMode"
        }
    }

    public struct OrStatement: AWSEncodableShape & AWSDecodableShape {
        /// The statements to combine with OR logic. You can use any statements that can be nested.
        public let statements: [Statement]

        @inlinable
        public init(statements: [Statement]) {
            self.statements = statements
        }

        public func validate(name: String) throws {
            try self.statements.forEach {
                try $0.validate(name: "\(name).statements[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case statements = "Statements"
        }
    }

    public struct OverrideAction: AWSEncodableShape & AWSDecodableShape {
        /// Override the rule group evaluation result to count only.   This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count   matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.
        public let count: CountAction?
        /// Don't override the rule group evaluation result. This is the most common setting.
        public let none: NoneAction?

        @inlinable
        public init(count: CountAction? = nil, none: NoneAction? = nil) {
            self.count = count
            self.none = none
        }

        public func validate(name: String) throws {
            try self.count?.validate(name: "\(name).count")
        }

        private enum CodingKeys: String, CodingKey {
            case count = "Count"
            case none = "None"
        }
    }

    public struct PasswordField: AWSEncodableShape & AWSDecodableShape {
        /// The name of the password field.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } },  the password field specification is /form/password.   For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named password1, the password field specification is password1.
        public let identifier: String

        @inlinable
        public init(identifier: String) {
            self.identifier = identifier
        }

        public func validate(name: String) throws {
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case identifier = "Identifier"
        }
    }

    public struct PhoneNumberField: AWSEncodableShape & AWSDecodableShape {
        /// The name of a single primary phone number field.  How you specify the phone number fields depends on the request inspection payload type.   For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } },  the phone number field identifiers are /form/primaryphoneline1, /form/primaryphoneline2, and /form/primaryphoneline3.   For form encoded payload types, use the HTML form names. For example, for an HTML form with input elements named primaryphoneline1, primaryphoneline2, and primaryphoneline3, the phone number field identifiers are primaryphoneline1, primaryphoneline2, and primaryphoneline3.
        public let identifier: String

        @inlinable
        public init(identifier: String) {
            self.identifier = identifier
        }

        public func validate(name: String) throws {
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case identifier = "Identifier"
        }
    }

    public struct PutLoggingConfigurationRequest: AWSEncodableShape {
        public let loggingConfiguration: LoggingConfiguration

        @inlinable
        public init(loggingConfiguration: LoggingConfiguration) {
            self.loggingConfiguration = loggingConfiguration
        }

        public func validate(name: String) throws {
            try self.loggingConfiguration.validate(name: "\(name).loggingConfiguration")
        }

        private enum CodingKeys: String, CodingKey {
            case loggingConfiguration = "LoggingConfiguration"
        }
    }

    public struct PutLoggingConfigurationResponse: AWSDecodableShape {
        public let loggingConfiguration: LoggingConfiguration?

        @inlinable
        public init(loggingConfiguration: LoggingConfiguration? = nil) {
            self.loggingConfiguration = loggingConfiguration
        }

        private enum CodingKeys: String, CodingKey {
            case loggingConfiguration = "LoggingConfiguration"
        }
    }

    public struct PutManagedRuleSetVersionsRequest: AWSEncodableShape {
        /// A unique identifier for the managed rule set. The ID is returned in the responses to commands like list. You provide it to operations like get and update.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the managed rule set. You use this, along with the rule set ID, to identify the rule set. This name is assigned to the corresponding managed rule group, which your customers can access and use.
        public let name: String
        /// The version of the named managed rule group that you'd like your customers to choose, from among your version offerings.
        public let recommendedVersion: String?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The versions of the named managed rule group that you want to offer to your customers.
        public let versionsToPublish: [String: VersionToPublish]?

        @inlinable
        public init(id: String, lockToken: String, name: String, recommendedVersion: String? = nil, scope: Scope, versionsToPublish: [String: VersionToPublish]? = nil) {
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.recommendedVersion = recommendedVersion
            self.scope = scope
            self.versionsToPublish = versionsToPublish
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.recommendedVersion, name: "recommendedVersion", parent: name, max: 64)
            try self.validate(self.recommendedVersion, name: "recommendedVersion", parent: name, min: 1)
            try self.validate(self.recommendedVersion, name: "recommendedVersion", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
            try self.versionsToPublish?.forEach {
                try validate($0.key, name: "versionsToPublish.key", parent: name, max: 64)
                try validate($0.key, name: "versionsToPublish.key", parent: name, min: 1)
                try validate($0.key, name: "versionsToPublish.key", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
                try $0.value.validate(name: "\(name).versionsToPublish[\"\($0.key)\"]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case recommendedVersion = "RecommendedVersion"
            case scope = "Scope"
            case versionsToPublish = "VersionsToPublish"
        }
    }

    public struct PutManagedRuleSetVersionsResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let nextLockToken: String?

        @inlinable
        public init(nextLockToken: String? = nil) {
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextLockToken = "NextLockToken"
        }
    }

    public struct PutPermissionPolicyRequest: AWSEncodableShape {
        /// The policy to attach to the specified rule group.  The policy specifications must conform to the following:   The policy must be composed using IAM Policy version 2012-10-17.   The policy must include specifications for Effect, Action, and Principal.    Effect must specify Allow.    Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and  wafv2:PutFirewallManagerRuleGroups and may optionally specify wafv2:GetRuleGroup.  WAF rejects any extra actions or wildcard actions in the policy.   The policy must not include a Resource parameter.   For more information, see IAM Policies.
        public let policy: String
        /// The Amazon Resource Name (ARN) of the RuleGroup to which you want to attach the policy.
        public let resourceArn: String

        @inlinable
        public init(policy: String, resourceArn: String) {
            self.policy = policy
            self.resourceArn = resourceArn
        }

        public func validate(name: String) throws {
            try self.validate(self.policy, name: "policy", parent: name, max: 395000)
            try self.validate(self.policy, name: "policy", parent: name, min: 1)
            try self.validate(self.policy, name: "policy", parent: name, pattern: "\\S")
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, max: 2048)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, min: 20)
            try self.validate(self.resourceArn, name: "resourceArn", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case policy = "Policy"
            case resourceArn = "ResourceArn"
        }
    }

    public struct PutPermissionPolicyResponse: AWSDecodableShape {
        public init() {}
    }

    public struct QueryString: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public final class RateBasedStatement: AWSEncodableShape & AWSDecodableShape {
        /// Setting that indicates how to aggregate the request counts.   Web requests that are missing any of the components specified in the aggregation keys are omitted from the rate-based rule evaluation and handling.      CONSTANT - Count and limit the requests that match the rate-based rule's scope-down  statement. With this option, the counted requests aren't further aggregated. The scope-down statement  is the only specification used. When the count of all requests that satisfy the scope-down statement goes over the limit, WAF applies the rule action to all requests that satisfy the scope-down statement.  With this option, you must configure the ScopeDownStatement property.     CUSTOM_KEYS - Aggregate the request counts using one or more web request components as the aggregate keys. With this option, you must specify the aggregate keys in the CustomKeys property.  To aggregate on only the IP address or only the forwarded IP address, don't use custom keys. Instead, set the aggregate key type to IP or FORWARDED_IP.    FORWARDED_IP - Aggregate the request counts on the first IP address in an HTTP header.  With this option, you must specify the header to use in the ForwardedIPConfig property.  To aggregate on a combination of the forwarded IP address with other aggregate keys, use CUSTOM_KEYS.     IP - Aggregate the request counts on the IP address from the web request origin. To aggregate on a combination of the IP address with other aggregate keys, use CUSTOM_KEYS.
        public let aggregateKeyType: RateBasedStatementAggregateKeyType
        /// Specifies the aggregate keys to use in a rate-base rule.
        public let customKeys: [RateBasedStatementCustomKey]?
        /// The amount of time, in seconds, that WAF should include in its request counts, looking back from the current time. For example,  for a setting of 120, when WAF checks the rate, it counts the requests for the 2 minutes immediately preceding  the current time. Valid settings are 60, 120, 300, and 600.  This setting doesn't determine how often WAF checks the rate, but how far back it looks each  time it checks. WAF checks the rate about every 10 seconds. Default: 300 (5 minutes)
        public let evaluationWindowSec: Int64?
        /// The configuration for inspecting IP addresses in an HTTP header that you specify, instead of using the IP address that's reported by the web request origin. Commonly, this is the X-Forwarded-For (XFF) header, but you can specify any header name.   If the specified header isn't present in the request, WAF doesn't apply the rule to the web request at all.  This is required if you specify a forwarded IP in the rule's aggregate key settings.
        public let forwardedIPConfig: ForwardedIPConfig?
        /// The limit on requests during the specified evaluation window for a single aggregation instance for the rate-based rule.  If the rate-based statement includes a ScopeDownStatement, this limit is applied only to the requests that match the statement. Examples:    If you aggregate on just the IP address, this is the limit on requests from any single IP address.    If you aggregate on the HTTP method and the query argument name "city", then this is the limit on requests for any single method, city pair.
        public let limit: Int64
        /// An optional nested statement that narrows the scope of the web requests that are evaluated and managed by the rate-based statement. When you use a scope-down statement,  the rate-based rule only tracks and rate limits  requests that match the scope-down statement. You can use any nestable Statement in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.
        public let scopeDownStatement: Statement?

        @inlinable
        public init(aggregateKeyType: RateBasedStatementAggregateKeyType, customKeys: [RateBasedStatementCustomKey]? = nil, evaluationWindowSec: Int64? = nil, forwardedIPConfig: ForwardedIPConfig? = nil, limit: Int64, scopeDownStatement: Statement? = nil) {
            self.aggregateKeyType = aggregateKeyType
            self.customKeys = customKeys
            self.evaluationWindowSec = evaluationWindowSec
            self.forwardedIPConfig = forwardedIPConfig
            self.limit = limit
            self.scopeDownStatement = scopeDownStatement
        }

        public func validate(name: String) throws {
            try self.customKeys?.forEach {
                try $0.validate(name: "\(name).customKeys[]")
            }
            try self.validate(self.customKeys, name: "customKeys", parent: name, max: 5)
            try self.forwardedIPConfig?.validate(name: "\(name).forwardedIPConfig")
            try self.validate(self.limit, name: "limit", parent: name, max: 2000000000)
            try self.validate(self.limit, name: "limit", parent: name, min: 10)
            try self.scopeDownStatement?.validate(name: "\(name).scopeDownStatement")
        }

        private enum CodingKeys: String, CodingKey {
            case aggregateKeyType = "AggregateKeyType"
            case customKeys = "CustomKeys"
            case evaluationWindowSec = "EvaluationWindowSec"
            case forwardedIPConfig = "ForwardedIPConfig"
            case limit = "Limit"
            case scopeDownStatement = "ScopeDownStatement"
        }
    }

    public struct RateBasedStatementCustomKey: AWSEncodableShape & AWSDecodableShape {
        /// Use an Autonomous System Number (ASN) derived from the request's originating or forwarded IP address as an aggregate key.  Each distinct ASN contributes to the aggregation instance.
        public let asn: RateLimitAsn?
        /// Use the value of a cookie in the request as an aggregate key. Each distinct value in the cookie contributes to the aggregation instance. If you use a single cookie as your custom key, then each value fully defines an aggregation instance.
        public let cookie: RateLimitCookie?
        /// Use the first IP address in an HTTP header as an aggregate key. Each distinct forwarded IP address contributes to the aggregation instance. When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the forwarded IP address by specifying FORWARDED_IP in your rate-based statement's AggregateKeyType.  With this option, you must specify the header to use in the rate-based rule's ForwardedIPConfig property.
        public let forwardedIP: RateLimitForwardedIP?
        /// Use the value of a header in the request as an aggregate key. Each distinct value in the header contributes to the aggregation instance. If you use a single  header as your custom key, then each value fully defines an aggregation instance.
        public let header: RateLimitHeader?
        /// Use the request's HTTP method as an aggregate key. Each distinct HTTP method contributes to the aggregation instance. If you use just the HTTP method as your custom key, then each method fully defines an aggregation instance.
        public let httpMethod: RateLimitHTTPMethod?
        /// Use the request's originating IP address as an aggregate key. Each distinct IP address contributes to the aggregation instance. When you specify an IP or forwarded IP in the custom key settings, you must also specify at least one other key to use. You can aggregate on only the IP address by specifying IP in your rate-based statement's AggregateKeyType.
        public let ip: RateLimitIP?
        ///  Use the request's JA3 fingerprint as an aggregate key. If you use a single JA3 fingerprint as your custom key, then each value fully defines an aggregation instance.
        public let ja3Fingerprint: RateLimitJA3Fingerprint?
        /// Use the request's JA4 fingerprint as an aggregate key. If you use a single JA4 fingerprint as your custom key, then each value fully defines an aggregation instance.
        public let ja4Fingerprint: RateLimitJA4Fingerprint?
        /// Use the specified label namespace as an aggregate key. Each distinct fully qualified label name that has the specified label namespace contributes to the aggregation instance. If you use just one label namespace as your custom key, then each label name fully defines an aggregation instance.   This uses only labels that have been added to the request by rules that are evaluated before this rate-based rule in the web ACL.  For information about label namespaces and names, see  Label syntax and naming requirements in the WAF Developer Guide.
        public let labelNamespace: RateLimitLabelNamespace?
        /// Use the specified query argument as an aggregate key. Each distinct value for the named query argument contributes to the aggregation instance. If you  use a single query argument as your custom key, then each value fully defines an aggregation instance.
        public let queryArgument: RateLimitQueryArgument?
        /// Use the request's query string as an aggregate key. Each distinct string contributes to the aggregation instance. If you use just the  query string as your custom key, then each string fully defines an aggregation instance.
        public let queryString: RateLimitQueryString?
        /// Use the request's URI path as an aggregate key. Each distinct URI path contributes to the aggregation instance. If you use just the  URI path as your custom key, then each URI path fully defines an aggregation instance.
        public let uriPath: RateLimitUriPath?

        @inlinable
        public init(asn: RateLimitAsn? = nil, cookie: RateLimitCookie? = nil, forwardedIP: RateLimitForwardedIP? = nil, header: RateLimitHeader? = nil, httpMethod: RateLimitHTTPMethod? = nil, ip: RateLimitIP? = nil, ja3Fingerprint: RateLimitJA3Fingerprint? = nil, ja4Fingerprint: RateLimitJA4Fingerprint? = nil, labelNamespace: RateLimitLabelNamespace? = nil, queryArgument: RateLimitQueryArgument? = nil, queryString: RateLimitQueryString? = nil, uriPath: RateLimitUriPath? = nil) {
            self.asn = asn
            self.cookie = cookie
            self.forwardedIP = forwardedIP
            self.header = header
            self.httpMethod = httpMethod
            self.ip = ip
            self.ja3Fingerprint = ja3Fingerprint
            self.ja4Fingerprint = ja4Fingerprint
            self.labelNamespace = labelNamespace
            self.queryArgument = queryArgument
            self.queryString = queryString
            self.uriPath = uriPath
        }

        public func validate(name: String) throws {
            try self.cookie?.validate(name: "\(name).cookie")
            try self.header?.validate(name: "\(name).header")
            try self.labelNamespace?.validate(name: "\(name).labelNamespace")
            try self.queryArgument?.validate(name: "\(name).queryArgument")
            try self.queryString?.validate(name: "\(name).queryString")
            try self.uriPath?.validate(name: "\(name).uriPath")
        }

        private enum CodingKeys: String, CodingKey {
            case asn = "ASN"
            case cookie = "Cookie"
            case forwardedIP = "ForwardedIP"
            case header = "Header"
            case httpMethod = "HTTPMethod"
            case ip = "IP"
            case ja3Fingerprint = "JA3Fingerprint"
            case ja4Fingerprint = "JA4Fingerprint"
            case labelNamespace = "LabelNamespace"
            case queryArgument = "QueryArgument"
            case queryString = "QueryString"
            case uriPath = "UriPath"
        }
    }

    public struct RateBasedStatementManagedKeysIPSet: AWSDecodableShape {
        /// The IP addresses that are currently blocked.
        public let addresses: [String]?
        /// The version of the IP addresses, either IPV4 or IPV6.
        public let ipAddressVersion: IPAddressVersion?

        @inlinable
        public init(addresses: [String]? = nil, ipAddressVersion: IPAddressVersion? = nil) {
            self.addresses = addresses
            self.ipAddressVersion = ipAddressVersion
        }

        private enum CodingKeys: String, CodingKey {
            case addresses = "Addresses"
            case ipAddressVersion = "IPAddressVersion"
        }
    }

    public struct RateLimitAsn: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct RateLimitCookie: AWSEncodableShape & AWSDecodableShape {
        /// The name of the cookie to use.
        public let name: String
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(name: String, textTransformations: [TextTransformation]) {
            self.name = name
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case textTransformations = "TextTransformations"
        }
    }

    public struct RateLimitForwardedIP: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct RateLimitHTTPMethod: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct RateLimitHeader: AWSEncodableShape & AWSDecodableShape {
        /// The name of the header to use.
        public let name: String
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(name: String, textTransformations: [TextTransformation]) {
            self.name = name
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case textTransformations = "TextTransformations"
        }
    }

    public struct RateLimitIP: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct RateLimitJA3Fingerprint: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if there is insufficient TSL Client Hello information to compute the JA3 fingerprint. You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior

        @inlinable
        public init(fallbackBehavior: FallbackBehavior) {
            self.fallbackBehavior = fallbackBehavior
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
        }
    }

    public struct RateLimitJA4Fingerprint: AWSEncodableShape & AWSDecodableShape {
        /// The match status to assign to the web request if there is insufficient TSL Client Hello information to compute the JA4 fingerprint. You can specify the following fallback behaviors:    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.
        public let fallbackBehavior: FallbackBehavior

        @inlinable
        public init(fallbackBehavior: FallbackBehavior) {
            self.fallbackBehavior = fallbackBehavior
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
        }
    }

    public struct RateLimitLabelNamespace: AWSEncodableShape & AWSDecodableShape {
        /// The namespace to use for aggregation.
        public let namespace: String

        @inlinable
        public init(namespace: String) {
            self.namespace = namespace
        }

        public func validate(name: String) throws {
            try self.validate(self.namespace, name: "namespace", parent: name, max: 1024)
            try self.validate(self.namespace, name: "namespace", parent: name, min: 1)
            try self.validate(self.namespace, name: "namespace", parent: name, pattern: "^[0-9A-Za-z_\\-:]+:$")
        }

        private enum CodingKeys: String, CodingKey {
            case namespace = "Namespace"
        }
    }

    public struct RateLimitQueryArgument: AWSEncodableShape & AWSDecodableShape {
        /// The name of the query argument to use.
        public let name: String
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(name: String, textTransformations: [TextTransformation]) {
            self.name = name
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
            case textTransformations = "TextTransformations"
        }
    }

    public struct RateLimitQueryString: AWSEncodableShape & AWSDecodableShape {
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(textTransformations: [TextTransformation]) {
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case textTransformations = "TextTransformations"
        }
    }

    public struct RateLimitUriPath: AWSEncodableShape & AWSDecodableShape {
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(textTransformations: [TextTransformation]) {
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case textTransformations = "TextTransformations"
        }
    }

    public struct Regex: AWSEncodableShape & AWSDecodableShape {
        /// The string representing the regular expression.
        public let regexString: String?

        @inlinable
        public init(regexString: String? = nil) {
            self.regexString = regexString
        }

        public func validate(name: String) throws {
            try self.validate(self.regexString, name: "regexString", parent: name, max: 512)
            try self.validate(self.regexString, name: "regexString", parent: name, min: 1)
            try self.validate(self.regexString, name: "regexString", parent: name, pattern: ".*")
        }

        private enum CodingKeys: String, CodingKey {
            case regexString = "RegexString"
        }
    }

    public struct RegexMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// The string representing the regular expression.
        public let regexString: String
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(fieldToMatch: FieldToMatch, regexString: String, textTransformations: [TextTransformation]) {
            self.fieldToMatch = fieldToMatch
            self.regexString = regexString
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.validate(self.regexString, name: "regexString", parent: name, max: 512)
            try self.validate(self.regexString, name: "regexString", parent: name, min: 1)
            try self.validate(self.regexString, name: "regexString", parent: name, pattern: ".*")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case fieldToMatch = "FieldToMatch"
            case regexString = "RegexString"
            case textTransformations = "TextTransformations"
        }
    }

    public struct RegexPatternSet: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// The name of the set. You cannot change the name after you create the set.
        public let name: String?
        /// The regular expression patterns in the set.
        public let regularExpressionList: [Regex]?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, name: String? = nil, regularExpressionList: [Regex]? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.name = name
            self.regularExpressionList = regularExpressionList
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case name = "Name"
            case regularExpressionList = "RegularExpressionList"
        }
    }

    public struct RegexPatternSetReferenceStatement: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the RegexPatternSet that this statement references.
        public let arn: String
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(arn: String, fieldToMatch: FieldToMatch, textTransformations: [TextTransformation]) {
            self.arn = arn
            self.fieldToMatch = fieldToMatch
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 2048)
            try self.validate(self.arn, name: "arn", parent: name, min: 20)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "\\S")
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case fieldToMatch = "FieldToMatch"
            case textTransformations = "TextTransformations"
        }
    }

    public struct RegexPatternSetSummary: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The name of the data type instance. You cannot change the name after you create the instance.
        public let name: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, lockToken: String? = nil, name: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
        }
    }

    public struct ReleaseSummary: AWSDecodableShape {
        /// The release version.
        public let releaseVersion: String?
        /// The timestamp of the release.
        public let timestamp: Date?

        @inlinable
        public init(releaseVersion: String? = nil, timestamp: Date? = nil) {
            self.releaseVersion = releaseVersion
            self.timestamp = timestamp
        }

        private enum CodingKeys: String, CodingKey {
            case releaseVersion = "ReleaseVersion"
            case timestamp = "Timestamp"
        }
    }

    public struct RequestBodyAssociatedResourceTypeConfig: AWSEncodableShape & AWSDecodableShape {
        /// Specifies the maximum size of the web request body component that an associated CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resource should send to WAF for inspection. This applies to statements in the web ACL that inspect the body or JSON body.  Default: 16 KB (16,384 bytes)
        public let defaultSizeInspectionLimit: SizeInspectionLimit

        @inlinable
        public init(defaultSizeInspectionLimit: SizeInspectionLimit) {
            self.defaultSizeInspectionLimit = defaultSizeInspectionLimit
        }

        private enum CodingKeys: String, CodingKey {
            case defaultSizeInspectionLimit = "DefaultSizeInspectionLimit"
        }
    }

    public struct RequestInspection: AWSEncodableShape & AWSDecodableShape {
        /// The name of the field in the request payload that contains your customer's password.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } },  the password field specification is /form/password.   For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named password1, the password field specification is password1.
        public let passwordField: PasswordField
        /// The payload type for your login endpoint, either JSON or form encoded.
        public let payloadType: PayloadType
        /// The name of the field in the request payload that contains your customer's username.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "username": "THE_USERNAME" } },  the username field specification is /form/username.    For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named username1, the username field specification is username1
        public let usernameField: UsernameField

        @inlinable
        public init(passwordField: PasswordField, payloadType: PayloadType, usernameField: UsernameField) {
            self.passwordField = passwordField
            self.payloadType = payloadType
            self.usernameField = usernameField
        }

        public func validate(name: String) throws {
            try self.passwordField.validate(name: "\(name).passwordField")
            try self.usernameField.validate(name: "\(name).usernameField")
        }

        private enum CodingKeys: String, CodingKey {
            case passwordField = "PasswordField"
            case payloadType = "PayloadType"
            case usernameField = "UsernameField"
        }
    }

    public struct RequestInspectionACFP: AWSEncodableShape & AWSDecodableShape {
        /// The names of the fields in the request payload that contain your customer's primary physical address.  Order the address fields in the array exactly as they are ordered in the request payload.  How you specify the address fields depends on the request inspection payload type.   For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "primaryaddressline1": "THE_ADDRESS1", "primaryaddressline2": "THE_ADDRESS2", "primaryaddressline3": "THE_ADDRESS3" } },  the address field idenfiers are /form/primaryaddressline1, /form/primaryaddressline2, and /form/primaryaddressline3.   For form encoded payload types, use the HTML form names. For example, for an HTML form with input elements named primaryaddressline1, primaryaddressline2, and primaryaddressline3, the address fields identifiers are primaryaddressline1, primaryaddressline2, and primaryaddressline3.
        public let addressFields: [AddressField]?
        /// The name of the field in the request payload that contains your customer's email.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "email": "THE_EMAIL" } },  the email field specification is /form/email.   For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named email1, the email field specification is email1.
        public let emailField: EmailField?
        /// The name of the field in the request payload that contains your customer's password.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "password": "THE_PASSWORD" } },  the password field specification is /form/password.   For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named password1, the password field specification is password1.
        public let passwordField: PasswordField?
        /// The payload type for your account creation endpoint, either JSON or form encoded.
        public let payloadType: PayloadType
        /// The names of the fields in the request payload that contain your customer's primary phone number.  Order the phone number fields in the array exactly as they are ordered in the request payload.  How you specify the phone number fields depends on the request inspection payload type.   For JSON payloads, specify the field identifiers in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "primaryphoneline1": "THE_PHONE1", "primaryphoneline2": "THE_PHONE2", "primaryphoneline3": "THE_PHONE3" } },  the phone number field identifiers are /form/primaryphoneline1, /form/primaryphoneline2, and /form/primaryphoneline3.   For form encoded payload types, use the HTML form names. For example, for an HTML form with input elements named primaryphoneline1, primaryphoneline2, and primaryphoneline3, the phone number field identifiers are primaryphoneline1, primaryphoneline2, and primaryphoneline3.
        public let phoneNumberFields: [PhoneNumberField]?
        /// The name of the field in the request payload that contains your customer's username.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "username": "THE_USERNAME" } },  the username field specification is /form/username.    For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named username1, the username field specification is username1
        public let usernameField: UsernameField?

        @inlinable
        public init(addressFields: [AddressField]? = nil, emailField: EmailField? = nil, passwordField: PasswordField? = nil, payloadType: PayloadType, phoneNumberFields: [PhoneNumberField]? = nil, usernameField: UsernameField? = nil) {
            self.addressFields = addressFields
            self.emailField = emailField
            self.passwordField = passwordField
            self.payloadType = payloadType
            self.phoneNumberFields = phoneNumberFields
            self.usernameField = usernameField
        }

        public func validate(name: String) throws {
            try self.addressFields?.forEach {
                try $0.validate(name: "\(name).addressFields[]")
            }
            try self.emailField?.validate(name: "\(name).emailField")
            try self.passwordField?.validate(name: "\(name).passwordField")
            try self.phoneNumberFields?.forEach {
                try $0.validate(name: "\(name).phoneNumberFields[]")
            }
            try self.usernameField?.validate(name: "\(name).usernameField")
        }

        private enum CodingKeys: String, CodingKey {
            case addressFields = "AddressFields"
            case emailField = "EmailField"
            case passwordField = "PasswordField"
            case payloadType = "PayloadType"
            case phoneNumberFields = "PhoneNumberFields"
            case usernameField = "UsernameField"
        }
    }

    public struct ResponseInspection: AWSEncodableShape & AWSDecodableShape {
        /// Configures inspection of the response body for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response body.
        public let bodyContains: ResponseInspectionBodyContains?
        /// Configures inspection of the response header for success and failure indicators.
        public let header: ResponseInspectionHeader?
        /// Configures inspection of the response JSON for success and failure indicators. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON.
        public let json: ResponseInspectionJson?
        /// Configures inspection of the response status code for success and failure indicators.
        public let statusCode: ResponseInspectionStatusCode?

        @inlinable
        public init(bodyContains: ResponseInspectionBodyContains? = nil, header: ResponseInspectionHeader? = nil, json: ResponseInspectionJson? = nil, statusCode: ResponseInspectionStatusCode? = nil) {
            self.bodyContains = bodyContains
            self.header = header
            self.json = json
            self.statusCode = statusCode
        }

        public func validate(name: String) throws {
            try self.bodyContains?.validate(name: "\(name).bodyContains")
            try self.header?.validate(name: "\(name).header")
            try self.json?.validate(name: "\(name).json")
            try self.statusCode?.validate(name: "\(name).statusCode")
        }

        private enum CodingKeys: String, CodingKey {
            case bodyContains = "BodyContains"
            case header = "Header"
            case json = "Json"
            case statusCode = "StatusCode"
        }
    }

    public struct ResponseInspectionBodyContains: AWSEncodableShape & AWSDecodableShape {
        /// Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.  JSON example: "FailureStrings": [ "Request failed" ]
        public let failureStrings: [String]
        /// Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.  JSON examples: "SuccessStrings": [ "Login successful" ] and "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
        public let successStrings: [String]

        @inlinable
        public init(failureStrings: [String], successStrings: [String]) {
            self.failureStrings = failureStrings
            self.successStrings = successStrings
        }

        public func validate(name: String) throws {
            try self.failureStrings.forEach {
                try validate($0, name: "failureStrings[]", parent: name, max: 100)
                try validate($0, name: "failureStrings[]", parent: name, min: 1)
                try validate($0, name: "failureStrings[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.failureStrings, name: "failureStrings", parent: name, max: 5)
            try self.validate(self.failureStrings, name: "failureStrings", parent: name, min: 1)
            try self.successStrings.forEach {
                try validate($0, name: "successStrings[]", parent: name, max: 100)
                try validate($0, name: "successStrings[]", parent: name, min: 1)
                try validate($0, name: "successStrings[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.successStrings, name: "successStrings", parent: name, max: 5)
            try self.validate(self.successStrings, name: "successStrings", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case failureStrings = "FailureStrings"
            case successStrings = "SuccessStrings"
        }
    }

    public struct ResponseInspectionHeader: AWSEncodableShape & AWSDecodableShape {
        /// Values in the response header with the specified name that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.  JSON examples: "FailureValues": [ "LoginFailed", "Failed login" ] and "FailureValues": [ "AccountCreationFailed" ]
        public let failureValues: [String]
        /// The name of the header to match against. The name must be an exact match, including case. JSON example: "Name": [ "RequestResult" ]
        public let name: String
        /// Values in the response header with the specified name that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.  JSON examples: "SuccessValues": [ "LoginPassed", "Successful login" ] and "SuccessValues": [ "AccountCreated", "Successful account creation" ]
        public let successValues: [String]

        @inlinable
        public init(failureValues: [String], name: String, successValues: [String]) {
            self.failureValues = failureValues
            self.name = name
            self.successValues = successValues
        }

        public func validate(name: String) throws {
            try self.failureValues.forEach {
                try validate($0, name: "failureValues[]", parent: name, max: 100)
                try validate($0, name: "failureValues[]", parent: name, min: 1)
                try validate($0, name: "failureValues[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.failureValues, name: "failureValues", parent: name, max: 3)
            try self.validate(self.failureValues, name: "failureValues", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, max: 200)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
            try self.successValues.forEach {
                try validate($0, name: "successValues[]", parent: name, max: 100)
                try validate($0, name: "successValues[]", parent: name, min: 1)
                try validate($0, name: "successValues[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.successValues, name: "successValues", parent: name, max: 3)
            try self.validate(self.successValues, name: "successValues", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case failureValues = "FailureValues"
            case name = "Name"
            case successValues = "SuccessValues"
        }
    }

    public struct ResponseInspectionJson: AWSEncodableShape & AWSDecodableShape {
        /// Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.  JSON example: "FailureValues": [ "False", "Failed" ]
        public let failureValues: [String]
        /// The identifier for the value to match against in the JSON. The identifier must be an exact match, including case. JSON examples: "Identifier": [ "/login/success" ] and "Identifier": [ "/sign-up/success" ]
        public let identifier: String
        /// Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.  JSON example: "SuccessValues": [ "True", "Succeeded" ]
        public let successValues: [String]

        @inlinable
        public init(failureValues: [String], identifier: String, successValues: [String]) {
            self.failureValues = failureValues
            self.identifier = identifier
            self.successValues = successValues
        }

        public func validate(name: String) throws {
            try self.failureValues.forEach {
                try validate($0, name: "failureValues[]", parent: name, max: 100)
                try validate($0, name: "failureValues[]", parent: name, min: 1)
                try validate($0, name: "failureValues[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.failureValues, name: "failureValues", parent: name, max: 5)
            try self.validate(self.failureValues, name: "failureValues", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
            try self.successValues.forEach {
                try validate($0, name: "successValues[]", parent: name, max: 100)
                try validate($0, name: "successValues[]", parent: name, min: 1)
                try validate($0, name: "successValues[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.successValues, name: "successValues", parent: name, max: 5)
            try self.validate(self.successValues, name: "successValues", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case failureValues = "FailureValues"
            case identifier = "Identifier"
            case successValues = "SuccessValues"
        }
    }

    public struct ResponseInspectionStatusCode: AWSEncodableShape & AWSDecodableShape {
        /// Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.  JSON example: "FailureCodes": [ 400, 404 ]
        public let failureCodes: [Int]
        /// Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.  JSON example: "SuccessCodes": [ 200, 201 ]
        public let successCodes: [Int]

        @inlinable
        public init(failureCodes: [Int], successCodes: [Int]) {
            self.failureCodes = failureCodes
            self.successCodes = successCodes
        }

        public func validate(name: String) throws {
            try self.failureCodes.forEach {
                try validate($0, name: "failureCodes[]", parent: name, max: 999)
                try validate($0, name: "failureCodes[]", parent: name, min: 0)
            }
            try self.validate(self.failureCodes, name: "failureCodes", parent: name, max: 10)
            try self.validate(self.failureCodes, name: "failureCodes", parent: name, min: 1)
            try self.successCodes.forEach {
                try validate($0, name: "successCodes[]", parent: name, max: 999)
                try validate($0, name: "successCodes[]", parent: name, min: 0)
            }
            try self.validate(self.successCodes, name: "successCodes", parent: name, max: 10)
            try self.validate(self.successCodes, name: "successCodes", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case failureCodes = "FailureCodes"
            case successCodes = "SuccessCodes"
        }
    }

    public struct Rule: AWSEncodableShape & AWSDecodableShape {
        /// The action that WAF should take on a web request when it matches the rule statement. Settings at the web ACL level can override the rule action setting.  This is used only for rules whose statements do not reference a rule group. Rule statements that reference a rule group include RuleGroupReferenceStatement and ManagedRuleGroupStatement.  You must specify either this Action setting or the rule OverrideAction setting, but not both:   If the rule statement does not reference a rule group, use this rule action setting and not the rule override action setting.    If the rule statement references a rule group, use the override action setting and not this action setting.
        public let action: RuleAction?
        /// Specifies how WAF should handle CAPTCHA evaluations. If you don't specify this, WAF uses the CAPTCHA configuration that's defined for the web ACL.
        public let captchaConfig: CaptchaConfig?
        /// Specifies how WAF should handle Challenge evaluations. If you don't specify this, WAF uses the challenge configuration that's defined for the web ACL.
        public let challengeConfig: ChallengeConfig?
        /// The name of the rule.  If you change the name of a Rule after you create it and you want the rule's metric name to reflect the change, update the metric name in the rule's VisibilityConfig settings. WAF  doesn't automatically update the metric name when you update the rule name.
        public let name: String
        /// The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.  You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement and ManagedRuleGroupStatement.   This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count   matches, do not use this and instead use the rule action override option, with Count action, in your rule group reference statement settings.
        public let overrideAction: OverrideAction?
        /// If you define more than one Rule in a WebACL, WAF evaluates each request against the Rules in order based on the value of Priority. WAF processes rules with lower priority first. The priorities don't need to be consecutive, but they must all be different.
        public let priority: Int
        /// Labels to apply to web requests that match the rule match statement. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.   Any rule that isn't a rule group reference statement or managed rule group statement can add labels to matching web requests.  Rules that run after this rule in the web ACL can match against these labels using a LabelMatchStatement. For each label, provide a case-sensitive string containing optional namespaces and a label name, according to the following guidelines:   Separate each component of the label with a colon.    Each namespace or name can have up to 128 characters.   You can specify up to 5 namespaces in a label.   Don't use the following reserved words in your label specification: aws, waf, managed, rulegroup, webacl, regexpatternset, or ipset.   For example, myLabelName or nameSpace1:nameSpace2:myLabelName.
        public let ruleLabels: [Label]?
        /// The WAF processing statement for the rule, for example ByteMatchStatement or SizeConstraintStatement.
        public let statement: Statement
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.   If you change the name of a Rule after you create it and you want the rule's metric name to reflect the change, update the metric name as well. WAF  doesn't automatically update the metric name.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(action: RuleAction? = nil, captchaConfig: CaptchaConfig? = nil, challengeConfig: ChallengeConfig? = nil, name: String, overrideAction: OverrideAction? = nil, priority: Int, ruleLabels: [Label]? = nil, statement: Statement, visibilityConfig: VisibilityConfig) {
            self.action = action
            self.captchaConfig = captchaConfig
            self.challengeConfig = challengeConfig
            self.name = name
            self.overrideAction = overrideAction
            self.priority = priority
            self.ruleLabels = ruleLabels
            self.statement = statement
            self.visibilityConfig = visibilityConfig
        }

        public func validate(name: String) throws {
            try self.action?.validate(name: "\(name).action")
            try self.captchaConfig?.validate(name: "\(name).captchaConfig")
            try self.challengeConfig?.validate(name: "\(name).challengeConfig")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.overrideAction?.validate(name: "\(name).overrideAction")
            try self.validate(self.priority, name: "priority", parent: name, min: 0)
            try self.ruleLabels?.forEach {
                try $0.validate(name: "\(name).ruleLabels[]")
            }
            try self.statement.validate(name: "\(name).statement")
            try self.visibilityConfig.validate(name: "\(name).visibilityConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case captchaConfig = "CaptchaConfig"
            case challengeConfig = "ChallengeConfig"
            case name = "Name"
            case overrideAction = "OverrideAction"
            case priority = "Priority"
            case ruleLabels = "RuleLabels"
            case statement = "Statement"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct RuleAction: AWSEncodableShape & AWSDecodableShape {
        /// Instructs WAF to allow the web request.
        public let allow: AllowAction?
        /// Instructs WAF to block the web request.
        public let block: BlockAction?
        /// Instructs WAF to run a CAPTCHA check against the web request.
        public let captcha: CaptchaAction?
        /// Instructs WAF to run a Challenge check against the web request.
        public let challenge: ChallengeAction?
        /// Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
        public let count: CountAction?

        @inlinable
        public init(allow: AllowAction? = nil, block: BlockAction? = nil, captcha: CaptchaAction? = nil, challenge: ChallengeAction? = nil, count: CountAction? = nil) {
            self.allow = allow
            self.block = block
            self.captcha = captcha
            self.challenge = challenge
            self.count = count
        }

        public func validate(name: String) throws {
            try self.allow?.validate(name: "\(name).allow")
            try self.block?.validate(name: "\(name).block")
            try self.captcha?.validate(name: "\(name).captcha")
            try self.challenge?.validate(name: "\(name).challenge")
            try self.count?.validate(name: "\(name).count")
        }

        private enum CodingKeys: String, CodingKey {
            case allow = "Allow"
            case block = "Block"
            case captcha = "Captcha"
            case challenge = "Challenge"
            case count = "Count"
        }
    }

    public struct RuleActionOverride: AWSEncodableShape & AWSDecodableShape {
        /// The override action to use, in place of the configured action of the rule in the rule group.
        public let actionToUse: RuleAction
        /// The name of the rule to override.  Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.
        public let name: String

        @inlinable
        public init(actionToUse: RuleAction, name: String) {
            self.actionToUse = actionToUse
            self.name = name
        }

        public func validate(name: String) throws {
            try self.actionToUse.validate(name: "\(name).actionToUse")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case actionToUse = "ActionToUse"
            case name = "Name"
        }
    }

    public struct RuleGroup: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String
        /// The labels that one or more rules in this rule group add to matching web requests. These labels are defined in the RuleLabels for a Rule.
        public let availableLabels: [LabelSummary]?
        /// The web ACL capacity units (WCUs) required for this rule group. When you create your own rule group, you define this, and you cannot change it after creation.  When you add or modify the rules in a rule group, WAF enforces this limit. You can check the capacity  for a set of rules using CheckCapacity. WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.  Simple rules that cost little to run use fewer WCUs than more complex rules
        /// 				that use more processing power.
        /// 				Rule group capacity is fixed at creation, which helps users plan their   web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU)  in the WAF Developer Guide.
        public let capacity: Int64
        /// The labels that one or more rules in this rule group match against in label match statements. These labels are defined in a LabelMatchStatement specification, in the Statement definition of a rule.
        public let consumedLabels: [LabelSummary]?
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// A description of the rule group that helps with identification.
        public let description: String?
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// The label namespace prefix for this rule group. All labels added by rules in this rule group have this prefix.    The syntax for the label namespace prefix for your rule groups is the following:   awswaf::rulegroup::    When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:   :
        public let labelNamespace: String?
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(arn: String, availableLabels: [LabelSummary]? = nil, capacity: Int64, consumedLabels: [LabelSummary]? = nil, customResponseBodies: [String: CustomResponseBody]? = nil, description: String? = nil, id: String, labelNamespace: String? = nil, name: String, rules: [Rule]? = nil, visibilityConfig: VisibilityConfig) {
            self.arn = arn
            self.availableLabels = availableLabels
            self.capacity = capacity
            self.consumedLabels = consumedLabels
            self.customResponseBodies = customResponseBodies
            self.description = description
            self.id = id
            self.labelNamespace = labelNamespace
            self.name = name
            self.rules = rules
            self.visibilityConfig = visibilityConfig
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case availableLabels = "AvailableLabels"
            case capacity = "Capacity"
            case consumedLabels = "ConsumedLabels"
            case customResponseBodies = "CustomResponseBodies"
            case description = "Description"
            case id = "Id"
            case labelNamespace = "LabelNamespace"
            case name = "Name"
            case rules = "Rules"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct RuleGroupReferenceStatement: AWSEncodableShape & AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String
        /// Rules in the referenced rule group whose actions are set to Count.   Instead of this option, use RuleActionOverrides. It accepts any valid action setting, including Count.
        public let excludedRules: [ExcludedRule]?
        /// Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.   Verify the rule names in your overrides carefully. With managed rule groups, WAF silently ignores any override that uses an invalid rule name. With customer-owned rule groups, invalid rule names in your overrides will cause web ACL updates to fail. An invalid rule name is any name that doesn't exactly match the case-sensitive name of an existing rule in the rule group.  You can use overrides for testing, for example you can override all of rule actions to Count and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
        public let ruleActionOverrides: [RuleActionOverride]?

        @inlinable
        public init(arn: String, excludedRules: [ExcludedRule]? = nil, ruleActionOverrides: [RuleActionOverride]? = nil) {
            self.arn = arn
            self.excludedRules = excludedRules
            self.ruleActionOverrides = ruleActionOverrides
        }

        public func validate(name: String) throws {
            try self.validate(self.arn, name: "arn", parent: name, max: 2048)
            try self.validate(self.arn, name: "arn", parent: name, min: 20)
            try self.validate(self.arn, name: "arn", parent: name, pattern: "\\S")
            try self.excludedRules?.forEach {
                try $0.validate(name: "\(name).excludedRules[]")
            }
            try self.validate(self.excludedRules, name: "excludedRules", parent: name, max: 100)
            try self.ruleActionOverrides?.forEach {
                try $0.validate(name: "\(name).ruleActionOverrides[]")
            }
            try self.validate(self.ruleActionOverrides, name: "ruleActionOverrides", parent: name, max: 100)
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case excludedRules = "ExcludedRules"
            case ruleActionOverrides = "RuleActionOverrides"
        }
    }

    public struct RuleGroupSummary: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the rule group that helps with identification.
        public let description: String?
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The name of the data type instance. You cannot change the name after you create the instance.
        public let name: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, lockToken: String? = nil, name: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
        }
    }

    public struct RuleSummary: AWSDecodableShape {
        /// The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.
        public let action: RuleAction?
        /// The name of the rule.
        public let name: String?

        @inlinable
        public init(action: RuleAction? = nil, name: String? = nil) {
            self.action = action
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case name = "Name"
        }
    }

    public struct SampledHTTPRequest: AWSDecodableShape {
        /// The action that WAF applied to the request.
        public let action: String?
        /// The CAPTCHA response for the request.
        public let captchaResponse: CaptchaResponse?
        /// The Challenge response for the request.
        public let challengeResponse: ChallengeResponse?
        /// Labels applied to the web request by matching rules. WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.  For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8.
        public let labels: [Label]?
        /// Used only for rule group rules that have a rule action override in place in the web ACL. This is the action that the rule group rule is configured for, and not the action that was applied to the request. The action that WAF applied is the Action value.
        public let overriddenAction: String?
        /// A complex type that contains detailed information about the request.
        public let request: HTTPRequest
        /// Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.
        public let requestHeadersInserted: [HTTPHeader]?
        /// The response code that was sent for the request.
        public let responseCodeSent: Int?
        /// The name of the Rule that the request matched. For managed rule groups, the format for this name is ##. For your own rule groups, the format for this name is #. If the rule is not in a rule group, this field is absent.
        public let ruleNameWithinRuleGroup: String?
        /// The time at which WAF received the request from your Amazon Web Services resource, in Unix time format (in seconds).
        public let timestamp: Date?
        /// A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1.
        public let weight: Int64

        @inlinable
        public init(action: String? = nil, captchaResponse: CaptchaResponse? = nil, challengeResponse: ChallengeResponse? = nil, labels: [Label]? = nil, overriddenAction: String? = nil, request: HTTPRequest, requestHeadersInserted: [HTTPHeader]? = nil, responseCodeSent: Int? = nil, ruleNameWithinRuleGroup: String? = nil, timestamp: Date? = nil, weight: Int64) {
            self.action = action
            self.captchaResponse = captchaResponse
            self.challengeResponse = challengeResponse
            self.labels = labels
            self.overriddenAction = overriddenAction
            self.request = request
            self.requestHeadersInserted = requestHeadersInserted
            self.responseCodeSent = responseCodeSent
            self.ruleNameWithinRuleGroup = ruleNameWithinRuleGroup
            self.timestamp = timestamp
            self.weight = weight
        }

        private enum CodingKeys: String, CodingKey {
            case action = "Action"
            case captchaResponse = "CaptchaResponse"
            case challengeResponse = "ChallengeResponse"
            case labels = "Labels"
            case overriddenAction = "OverriddenAction"
            case request = "Request"
            case requestHeadersInserted = "RequestHeadersInserted"
            case responseCodeSent = "ResponseCodeSent"
            case ruleNameWithinRuleGroup = "RuleNameWithinRuleGroup"
            case timestamp = "Timestamp"
            case weight = "Weight"
        }
    }

    public struct SingleHeader: AWSEncodableShape & AWSDecodableShape {
        /// The name of the query header to inspect.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct SingleQueryArgument: AWSEncodableShape & AWSDecodableShape {
        /// The name of the query argument to inspect.
        public let name: String

        @inlinable
        public init(name: String) {
            self.name = name
        }

        public func validate(name: String) throws {
            try self.validate(self.name, name: "name", parent: name, max: 64)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case name = "Name"
        }
    }

    public struct SizeConstraintStatement: AWSEncodableShape & AWSDecodableShape {
        /// The operator to use to compare the request part to the size setting.
        public let comparisonOperator: ComparisonOperator
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// The size, in byte, to compare to the request part, after any transformations.
        public let size: Int64
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(comparisonOperator: ComparisonOperator, fieldToMatch: FieldToMatch, size: Int64, textTransformations: [TextTransformation]) {
            self.comparisonOperator = comparisonOperator
            self.fieldToMatch = fieldToMatch
            self.size = size
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.validate(self.size, name: "size", parent: name, max: 21474836480)
            try self.validate(self.size, name: "size", parent: name, min: 0)
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case comparisonOperator = "ComparisonOperator"
            case fieldToMatch = "FieldToMatch"
            case size = "Size"
            case textTransformations = "TextTransformations"
        }
    }

    public struct SqliMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// The sensitivity that you want WAF to use to inspect for SQL injection attacks.   HIGH detects more attacks, but might generate more false positives,  especially if your web requests frequently contain unusual strings.  For information about identifying and mitigating false positives, see  Testing and tuning in the                                                                              WAF Developer Guide.  LOW is generally a better choice for resources that already have other  protections against SQL injection attacks or that have a low tolerance for false positives.  Default: LOW
        public let sensitivityLevel: SensitivityLevel?
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(fieldToMatch: FieldToMatch, sensitivityLevel: SensitivityLevel? = nil, textTransformations: [TextTransformation]) {
            self.fieldToMatch = fieldToMatch
            self.sensitivityLevel = sensitivityLevel
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case fieldToMatch = "FieldToMatch"
            case sensitivityLevel = "SensitivityLevel"
            case textTransformations = "TextTransformations"
        }
    }

    public final class Statement: AWSEncodableShape & AWSDecodableShape {
        /// A logical rule statement used to combine other rule statements with AND logic. You provide more than one Statement within the AndStatement.
        public let andStatement: AndStatement?
        /// A rule statement that inspects web traffic based on the Autonomous System Number (ASN) associated with the request's IP address. For additional details, see ASN match rule statement in the WAF Developer Guide.
        public let asnMatchStatement: AsnMatchStatement?
        /// A rule statement that defines a string match search for WAF to apply to web requests. The byte match statement provides the bytes to search for, the location in requests that you want WAF to search, and other settings. The bytes to search for are typically a string that corresponds with ASCII characters. In the WAF console and the developer guide, this is called a string match statement.
        public let byteMatchStatement: ByteMatchStatement?
        /// A rule statement that labels web requests by country and region and that matches against web requests based on country code. A geo match rule labels every request that it inspects regardless of whether it finds a match.   To manage requests only by country, you can use this statement by itself and specify the countries that you want to match against in the CountryCodes array.    Otherwise, configure your geo match rule with Count action so that it only labels requests. Then, add one or more label match rules to run after the geo match rule and configure them to match against the geographic labels and handle the requests as needed.    WAF labels requests using the alpha-2 country and region codes from the International Organization for Standardization (ISO) 3166 standard. WAF determines the codes using either the IP address in the web request origin or, if you specify it, the address in the geo match ForwardedIPConfig.  If you use the web request origin, the label formats are awswaf:clientip:geo:region:- and awswaf:clientip:geo:country:. If you use a forwarded IP address, the label formats are awswaf:forwardedip:geo:region:- and awswaf:forwardedip:geo:country:. For additional details, see Geographic match rule statement in the WAF Developer Guide.
        public let geoMatchStatement: GeoMatchStatement?
        /// A rule statement used to detect web requests coming from particular IP addresses or address ranges. To use this, create an IPSet that specifies the addresses you want to detect, then use the ARN of that set in this statement. To create an IP set, see CreateIPSet. Each IP set rule statement references an IP set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF automatically updates all rules that reference it.
        public let ipSetReferenceStatement: IPSetReferenceStatement?
        /// A rule statement to match against labels that have been added to the web request by rules that have already run in the web ACL.  The label match statement provides the label or namespace string to search for. The label string can represent a part or all of the fully qualified label name that had been added to the web request. Fully qualified labels have a prefix, optional namespaces, and label name. The prefix identifies the rule group or web ACL context of the rule that added the label.  If you do not provide the fully qualified name in your label match string, WAF performs the search for labels that were added in the same context as the label match statement.
        public let labelMatchStatement: LabelMatchStatement?
        /// A rule statement used to run the rules that are defined in a managed rule group. To use this, provide the vendor name and the name of the rule group in this statement. You can retrieve the required names by calling ListAvailableManagedRuleGroups. You cannot nest a ManagedRuleGroupStatement, for example for use inside a NotStatement or OrStatement. You cannot use a managed rule group  inside another rule group. You can only reference a managed rule group as a top-level statement within a rule that you define in a web ACL.  You are charged additional fees when you use the WAF Bot Control managed rule group AWSManagedRulesBotControlRuleSet, the WAF Fraud Control account takeover prevention (ATP) managed rule group AWSManagedRulesATPRuleSet, or the WAF Fraud Control account creation fraud prevention (ACFP) managed rule group AWSManagedRulesACFPRuleSet. For more information, see WAF Pricing.
        public let managedRuleGroupStatement: ManagedRuleGroupStatement?
        /// A logical rule statement used to negate the results of another rule statement. You provide one Statement within the NotStatement.
        public let notStatement: NotStatement?
        /// A logical rule statement used to combine other rule statements with OR logic. You provide more than one Statement within the OrStatement.
        public let orStatement: OrStatement?
        /// A rate-based rule counts incoming requests and rate limits requests when they are coming at too fast a rate. The rule categorizes requests according to your aggregation criteria, collects them into aggregation instances, and counts and rate limits the requests for each instance.   If you change any of these settings in a rule that's currently in use, the change resets the rule's rate limiting counts. This can pause the rule's rate limiting activities for up to a minute.   You can specify individual aggregation keys, like IP address or HTTP method. You can also specify aggregation key combinations, like IP address and HTTP method, or HTTP method, query argument, and cookie.  Each unique set of values for the aggregation keys that you specify is a separate aggregation instance, with the value from each key contributing to the aggregation instance definition.  For example, assume the rule evaluates web requests with the following IP address and HTTP method values:    IP address 10.1.1.1, HTTP method POST   IP address 10.1.1.1, HTTP method GET   IP address 127.0.0.0, HTTP method POST   IP address 10.1.1.1, HTTP method GET   The rule would create different aggregation instances according to your aggregation criteria, for example:    If the aggregation criteria is just the IP address, then each individual address is an aggregation instance, and WAF counts requests separately for each. The aggregation instances and request counts for our example would be the following:    IP address 10.1.1.1: count 3   IP address 127.0.0.0: count 1     If the aggregation criteria is HTTP method, then each individual HTTP method is an aggregation instance. The aggregation instances and request counts for our example would be the following:    HTTP method POST: count 2   HTTP method GET: count 2     If the aggregation criteria is IP address and HTTP method, then each IP address and each HTTP method would contribute to the combined aggregation instance. The aggregation instances and request counts for our example would be the following:    IP address 10.1.1.1, HTTP method POST: count 1   IP address 10.1.1.1, HTTP method GET: count 2   IP address 127.0.0.0, HTTP method POST: count 1     For any n-tuple of aggregation keys, each unique combination of values for the keys defines a separate aggregation instance, which WAF counts and rate-limits individually.  You can optionally nest another statement inside the rate-based statement, to narrow the scope of the rule so that it only counts and rate limits requests that match the nested statement. You can use this nested scope-down statement in conjunction with your aggregation key specifications or you can just count and rate limit all requests that match the scope-down statement, without additional aggregation. When you choose to just manage all requests that match a scope-down statement, the aggregation instance is singular for the rule.  You cannot nest a RateBasedStatement inside another statement, for example inside a NotStatement or OrStatement. You can define a RateBasedStatement inside a web ACL and inside a rule group.  For additional information about the options, see Rate limiting web requests using rate-based rules  in the WAF Developer Guide.  If you only aggregate on the individual IP address or forwarded IP address, you can retrieve the list of IP addresses that WAF  is currently rate limiting for a rule through the API call GetRateBasedStatementManagedKeys. This option is not available for other aggregation configurations. WAF tracks and manages web requests separately for each instance of a rate-based rule that you use. For example, if you provide the same rate-based rule settings in two web ACLs, each of the two rule statements represents a separate instance of the rate-based rule and gets its own tracking and management by WAF. If you define a rate-based rule inside a rule group, and then use that rule group in multiple places, each use creates a separate instance of the rate-based rule that gets its own tracking and management by WAF.
        public let rateBasedStatement: RateBasedStatement?
        /// A rule statement used to search web request components for a match against a single regular expression.
        public let regexMatchStatement: RegexMatchStatement?
        /// A rule statement used to search web request components for matches with regular expressions. To use this, create a RegexPatternSet that specifies the expressions that you want to detect, then use the ARN of that set in this statement. A web request matches the pattern set rule statement if the request component matches any of the patterns in the set. To create a regex pattern set, see CreateRegexPatternSet. Each regex pattern set rule statement references a regex pattern set. You create and maintain the set independent of your rules. This allows you to use the single set in multiple rules. When you update the referenced set, WAF automatically updates all rules that reference it.
        public let regexPatternSetReferenceStatement: RegexPatternSetReferenceStatement?
        /// A rule statement used to run the rules that are defined in a RuleGroup. To use this, create a rule group with your rules, then provide the ARN of the rule group in this statement. You cannot nest a RuleGroupReferenceStatement, for example for use inside a NotStatement or OrStatement. You cannot use a rule group reference statement inside another rule group. You can only reference a rule group as a top-level statement within a rule that you define in a web ACL.
        public let ruleGroupReferenceStatement: RuleGroupReferenceStatement?
        /// A rule statement that compares a number of bytes against the size of a request component, using a comparison operator, such as greater than (>) or less than ( If you configure WAF to inspect the request body, WAF inspects only the number of bytes in the body up to the limit for the web ACL and protected resource type. If you know that the request body for your web requests should never exceed the inspection limit, you can use a size constraint statement to block requests that have a larger request body size. For more information about the inspection limits, see Body and JsonBody settings for the FieldToMatch data type.  If you choose URI for the value of Part of the request to filter on, the slash (/) in the URI counts as one character. For example, the URI /logo.jpg is nine characters long.
        public let sizeConstraintStatement: SizeConstraintStatement?
        /// A rule statement that inspects for malicious SQL code. Attackers insert malicious SQL code into web requests to do things like modify your database or extract data from it.
        public let sqliMatchStatement: SqliMatchStatement?
        /// A rule statement that inspects for cross-site scripting (XSS) attacks. In XSS attacks, the attacker
        /// uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.
        public let xssMatchStatement: XssMatchStatement?

        @inlinable
        public init(andStatement: AndStatement? = nil, asnMatchStatement: AsnMatchStatement? = nil, byteMatchStatement: ByteMatchStatement? = nil, geoMatchStatement: GeoMatchStatement? = nil, ipSetReferenceStatement: IPSetReferenceStatement? = nil, labelMatchStatement: LabelMatchStatement? = nil, managedRuleGroupStatement: ManagedRuleGroupStatement? = nil, notStatement: NotStatement? = nil, orStatement: OrStatement? = nil, rateBasedStatement: RateBasedStatement? = nil, regexMatchStatement: RegexMatchStatement? = nil, regexPatternSetReferenceStatement: RegexPatternSetReferenceStatement? = nil, ruleGroupReferenceStatement: RuleGroupReferenceStatement? = nil, sizeConstraintStatement: SizeConstraintStatement? = nil, sqliMatchStatement: SqliMatchStatement? = nil, xssMatchStatement: XssMatchStatement? = nil) {
            self.andStatement = andStatement
            self.asnMatchStatement = asnMatchStatement
            self.byteMatchStatement = byteMatchStatement
            self.geoMatchStatement = geoMatchStatement
            self.ipSetReferenceStatement = ipSetReferenceStatement
            self.labelMatchStatement = labelMatchStatement
            self.managedRuleGroupStatement = managedRuleGroupStatement
            self.notStatement = notStatement
            self.orStatement = orStatement
            self.rateBasedStatement = rateBasedStatement
            self.regexMatchStatement = regexMatchStatement
            self.regexPatternSetReferenceStatement = regexPatternSetReferenceStatement
            self.ruleGroupReferenceStatement = ruleGroupReferenceStatement
            self.sizeConstraintStatement = sizeConstraintStatement
            self.sqliMatchStatement = sqliMatchStatement
            self.xssMatchStatement = xssMatchStatement
        }

        public func validate(name: String) throws {
            try self.andStatement?.validate(name: "\(name).andStatement")
            try self.asnMatchStatement?.validate(name: "\(name).asnMatchStatement")
            try self.byteMatchStatement?.validate(name: "\(name).byteMatchStatement")
            try self.geoMatchStatement?.validate(name: "\(name).geoMatchStatement")
            try self.ipSetReferenceStatement?.validate(name: "\(name).ipSetReferenceStatement")
            try self.labelMatchStatement?.validate(name: "\(name).labelMatchStatement")
            try self.managedRuleGroupStatement?.validate(name: "\(name).managedRuleGroupStatement")
            try self.notStatement?.validate(name: "\(name).notStatement")
            try self.orStatement?.validate(name: "\(name).orStatement")
            try self.rateBasedStatement?.validate(name: "\(name).rateBasedStatement")
            try self.regexMatchStatement?.validate(name: "\(name).regexMatchStatement")
            try self.regexPatternSetReferenceStatement?.validate(name: "\(name).regexPatternSetReferenceStatement")
            try self.ruleGroupReferenceStatement?.validate(name: "\(name).ruleGroupReferenceStatement")
            try self.sizeConstraintStatement?.validate(name: "\(name).sizeConstraintStatement")
            try self.sqliMatchStatement?.validate(name: "\(name).sqliMatchStatement")
            try self.xssMatchStatement?.validate(name: "\(name).xssMatchStatement")
        }

        private enum CodingKeys: String, CodingKey {
            case andStatement = "AndStatement"
            case asnMatchStatement = "AsnMatchStatement"
            case byteMatchStatement = "ByteMatchStatement"
            case geoMatchStatement = "GeoMatchStatement"
            case ipSetReferenceStatement = "IPSetReferenceStatement"
            case labelMatchStatement = "LabelMatchStatement"
            case managedRuleGroupStatement = "ManagedRuleGroupStatement"
            case notStatement = "NotStatement"
            case orStatement = "OrStatement"
            case rateBasedStatement = "RateBasedStatement"
            case regexMatchStatement = "RegexMatchStatement"
            case regexPatternSetReferenceStatement = "RegexPatternSetReferenceStatement"
            case ruleGroupReferenceStatement = "RuleGroupReferenceStatement"
            case sizeConstraintStatement = "SizeConstraintStatement"
            case sqliMatchStatement = "SqliMatchStatement"
            case xssMatchStatement = "XssMatchStatement"
        }
    }

    public struct Tag: AWSEncodableShape & AWSDecodableShape {
        /// Part of the key:value pair that defines a tag. You can use a tag key to describe a category of information, such as "customer." Tag keys are case-sensitive.
        public let key: String
        /// Part of the key:value pair that defines a tag. You can use a tag value to describe a specific value within a category, such as "companyA" or "companyB." Tag values are case-sensitive.
        public let value: String

        @inlinable
        public init(key: String, value: String) {
            self.key = key
            self.value = value
        }

        public func validate(name: String) throws {
            try self.validate(self.key, name: "key", parent: name, max: 128)
            try self.validate(self.key, name: "key", parent: name, min: 1)
            try self.validate(self.key, name: "key", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
            try self.validate(self.value, name: "value", parent: name, max: 256)
            try self.validate(self.value, name: "value", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
        }

        private enum CodingKeys: String, CodingKey {
            case key = "Key"
            case value = "Value"
        }
    }

    public struct TagInfoForResource: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceARN: String?
        /// The array of Tag objects defined for the resource.
        public let tagList: [Tag]?

        @inlinable
        public init(resourceARN: String? = nil, tagList: [Tag]? = nil) {
            self.resourceARN = resourceARN
            self.tagList = tagList
        }

        private enum CodingKeys: String, CodingKey {
            case resourceARN = "ResourceARN"
            case tagList = "TagList"
        }
    }

    public struct TagResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceARN: String
        /// An array of key:value pairs to associate with the resource.
        public let tags: [Tag]

        @inlinable
        public init(resourceARN: String, tags: [Tag]) {
            self.resourceARN = resourceARN
            self.tags = tags
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, max: 2048)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, min: 20)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, pattern: "\\S")
            try self.tags.forEach {
                try $0.validate(name: "\(name).tags[]")
            }
            try self.validate(self.tags, name: "tags", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case resourceARN = "ResourceARN"
            case tags = "Tags"
        }
    }

    public struct TagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct TextTransformation: AWSEncodableShape & AWSDecodableShape {
        /// Sets the relative processing order for multiple transformations. WAF processes all transformations, from lowest priority to highest, before inspecting the transformed content. The priorities don't need to be consecutive, but they must all be different.
        public let priority: Int
        /// For detailed descriptions of each of the transformation types, see Text transformations  in the WAF Developer Guide.
        public let type: TextTransformationType

        @inlinable
        public init(priority: Int, type: TextTransformationType) {
            self.priority = priority
            self.type = type
        }

        public func validate(name: String) throws {
            try self.validate(self.priority, name: "priority", parent: name, min: 0)
        }

        private enum CodingKeys: String, CodingKey {
            case priority = "Priority"
            case type = "Type"
        }
    }

    public struct TimeWindow: AWSEncodableShape & AWSDecodableShape {
        /// The end of the time range from which you want GetSampledRequests to return a sample of the requests that your Amazon Web Services resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z". You can specify any time range in the previous three hours.
        public let endTime: Date
        /// The beginning of the time range from which you want GetSampledRequests to return a sample of the requests that your Amazon Web Services resource received. You must specify the times in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z". You can specify any time range in the previous three hours.
        public let startTime: Date

        @inlinable
        public init(endTime: Date, startTime: Date) {
            self.endTime = endTime
            self.startTime = startTime
        }

        private enum CodingKeys: String, CodingKey {
            case endTime = "EndTime"
            case startTime = "StartTime"
        }
    }

    public struct UntagResourceRequest: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the resource.
        public let resourceARN: String
        /// An array of keys identifying the tags to disassociate from the resource.
        public let tagKeys: [String]

        @inlinable
        public init(resourceARN: String, tagKeys: [String]) {
            self.resourceARN = resourceARN
            self.tagKeys = tagKeys
        }

        public func validate(name: String) throws {
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, max: 2048)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, min: 20)
            try self.validate(self.resourceARN, name: "resourceARN", parent: name, pattern: "\\S")
            try self.tagKeys.forEach {
                try validate($0, name: "tagKeys[]", parent: name, max: 128)
                try validate($0, name: "tagKeys[]", parent: name, min: 1)
                try validate($0, name: "tagKeys[]", parent: name, pattern: "^([\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*)$")
            }
            try self.validate(self.tagKeys, name: "tagKeys", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case resourceARN = "ResourceARN"
            case tagKeys = "TagKeys"
        }
    }

    public struct UntagResourceResponse: AWSDecodableShape {
        public init() {}
    }

    public struct UpdateIPSetRequest: AWSEncodableShape {
        /// Contains an array of strings that specifies zero or more IP addresses or blocks of IP addresses that you want WAF to inspect for in incoming requests. All addresses must be specified using Classless Inter-Domain Routing (CIDR) notation. WAF supports all IPv4 and IPv6 CIDR ranges except for /0.  Example address strings:    For requests that originated from the IP address 192.0.2.44, specify 192.0.2.44/32.   For requests that originated from IP addresses from 192.0.2.0 to 192.0.2.255, specify  192.0.2.0/24.   For requests that originated from the IP address 1111:0000:0000:0000:0000:0000:0000:0111, specify 1111:0000:0000:0000:0000:0000:0000:0111/128.   For requests that originated from IP addresses 1111:0000:0000:0000:0000:0000:0000:0000 to 1111:0000:0000:0000:ffff:ffff:ffff:ffff, specify 1111:0000:0000:0000:0000:0000:0000:0000/64.   For more information about CIDR notation, see the Wikipedia entry Classless Inter-Domain Routing. Example JSON Addresses specifications:    Empty array: "Addresses": []    Array with one address: "Addresses": ["192.0.2.44/32"]    Array with three addresses: "Addresses": ["192.0.2.44/32", "192.0.2.0/24", "192.0.0.0/16"]    INVALID specification: "Addresses": [""] INVALID
        public let addresses: [String]
        /// A description of the IP set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the IP set. You cannot change the name of an IPSet after you create it.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(addresses: [String], description: String? = nil, id: String, lockToken: String, name: String, scope: Scope) {
            self.addresses = addresses
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.addresses.forEach {
                try validate($0, name: "addresses[]", parent: name, max: 50)
                try validate($0, name: "addresses[]", parent: name, min: 1)
                try validate($0, name: "addresses[]", parent: name, pattern: "\\S")
            }
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case addresses = "Addresses"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
        }
    }

    public struct UpdateIPSetResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns this token to your update requests. You use NextLockToken in the same manner as you use LockToken.
        public let nextLockToken: String?

        @inlinable
        public init(nextLockToken: String? = nil) {
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextLockToken = "NextLockToken"
        }
    }

    public struct UpdateManagedRuleSetVersionExpiryDateRequest: AWSEncodableShape {
        /// The time that you want the version to expire. Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
        public let expiryTimestamp: Date
        /// A unique identifier for the managed rule set. The ID is returned in the responses to commands like list. You provide it to operations like get and update.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the managed rule set. You use this, along with the rule set ID, to identify the rule set. This name is assigned to the corresponding managed rule group, which your customers can access and use.
        public let name: String
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// The version that you want to remove from your list of offerings for the named managed rule group.
        public let versionToExpire: String

        @inlinable
        public init(expiryTimestamp: Date, id: String, lockToken: String, name: String, scope: Scope, versionToExpire: String) {
            self.expiryTimestamp = expiryTimestamp
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.scope = scope
            self.versionToExpire = versionToExpire
        }

        public func validate(name: String) throws {
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.validate(self.versionToExpire, name: "versionToExpire", parent: name, max: 64)
            try self.validate(self.versionToExpire, name: "versionToExpire", parent: name, min: 1)
            try self.validate(self.versionToExpire, name: "versionToExpire", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case expiryTimestamp = "ExpiryTimestamp"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case scope = "Scope"
            case versionToExpire = "VersionToExpire"
        }
    }

    public struct UpdateManagedRuleSetVersionExpiryDateResponse: AWSDecodableShape {
        /// The version that is set to expire.
        public let expiringVersion: String?
        /// The time that the version will expire.  Times are in Coordinated Universal Time (UTC) format. UTC format includes the special designator, Z. For example, "2016-09-27T14:50Z".
        public let expiryTimestamp: Date?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let nextLockToken: String?

        @inlinable
        public init(expiringVersion: String? = nil, expiryTimestamp: Date? = nil, nextLockToken: String? = nil) {
            self.expiringVersion = expiringVersion
            self.expiryTimestamp = expiryTimestamp
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case expiringVersion = "ExpiringVersion"
            case expiryTimestamp = "ExpiryTimestamp"
            case nextLockToken = "NextLockToken"
        }
    }

    public struct UpdateRegexPatternSetRequest: AWSEncodableShape {
        /// A description of the set that helps with identification.
        public let description: String?
        /// A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the set. You cannot change the name after you create the set.
        public let name: String
        public let regularExpressionList: [Regex]
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope

        @inlinable
        public init(description: String? = nil, id: String, lockToken: String, name: String, regularExpressionList: [Regex], scope: Scope) {
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.regularExpressionList = regularExpressionList
            self.scope = scope
        }

        public func validate(name: String) throws {
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.regularExpressionList.forEach {
                try $0.validate(name: "\(name).regularExpressionList[]")
            }
        }

        private enum CodingKeys: String, CodingKey {
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case regularExpressionList = "RegularExpressionList"
            case scope = "Scope"
        }
    }

    public struct UpdateRegexPatternSetResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns this token to your update requests. You use NextLockToken in the same manner as you use LockToken.
        public let nextLockToken: String?

        @inlinable
        public init(nextLockToken: String? = nil) {
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextLockToken = "NextLockToken"
        }
    }

    public struct UpdateRuleGroupRequest: AWSEncodableShape {
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the rule group, and then use them in the rules that you define in the rule group.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// A description of the rule group that helps with identification.
        public let description: String?
        /// A unique identifier for the rule group. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the rule group. You cannot change the name of a rule group after you create it.
        public let name: String
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(customResponseBodies: [String: CustomResponseBody]? = nil, description: String? = nil, id: String, lockToken: String, name: String, rules: [Rule]? = nil, scope: Scope, visibilityConfig: VisibilityConfig) {
            self.customResponseBodies = customResponseBodies
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.rules = rules
            self.scope = scope
            self.visibilityConfig = visibilityConfig
        }

        public func validate(name: String) throws {
            try self.customResponseBodies?.forEach {
                try validate($0.key, name: "customResponseBodies.key", parent: name, max: 128)
                try validate($0.key, name: "customResponseBodies.key", parent: name, min: 1)
                try validate($0.key, name: "customResponseBodies.key", parent: name, pattern: "^[\\w\\-]+$")
                try $0.value.validate(name: "\(name).customResponseBodies[\"\($0.key)\"]")
            }
            try self.validate(self.customResponseBodies, name: "customResponseBodies", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.rules?.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
            try self.visibilityConfig.validate(name: "\(name).visibilityConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case customResponseBodies = "CustomResponseBodies"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case rules = "Rules"
            case scope = "Scope"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct UpdateRuleGroupResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns this token to your update requests. You use NextLockToken in the same manner as you use LockToken.
        public let nextLockToken: String?

        @inlinable
        public init(nextLockToken: String? = nil) {
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextLockToken = "NextLockToken"
        }
    }

    public struct UpdateWebACLRequest: AWSEncodableShape {
        /// Specifies custom configurations for the associations between the web ACL and protected resources.   Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can  customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).   You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.  For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
        public let associationConfig: AssociationConfig?
        /// Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.
        public let captchaConfig: CaptchaConfig?
        /// Specifies how WAF should handle challenge evaluations for rules that don't have
        /// their own ChallengeConfig settings. If you don't specify this, WAF uses its default settings for ChallengeConfig.
        public let challengeConfig: ChallengeConfig?
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// Specifies data protection to apply to the web request data for the web ACL. This is a web ACL level data protection option.  The data protection that you configure for the web ACL alters the data that's available for any other data collection activity,  including your WAF logging destinations, web ACL request sampling, and Amazon Security Lake data collection and management. Your other option for data protection is in the logging configuration, which only affects logging.
        public let dataProtectionConfig: DataProtectionConfig?
        /// The action to perform if none of the Rules contained in the WebACL match.
        public let defaultAction: DefaultAction
        /// A description of the web ACL that helps with identification.
        public let description: String?
        /// The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String
        /// Specifies the type of DDoS protection to apply to web request data for a web ACL. For most scenarios, it is recommended to use the default protection level, ACTIVE_UNDER_DDOS.  If a web ACL is associated with multiple Application Load Balancers, the changes you make to DDoS protection in that web ACL will apply to all associated Application Load Balancers.
        public let onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig?
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Specifies whether this is for a global resource type, such as a Amazon CloudFront distribution. For an Amplify application, use CLOUDFRONT. To work with CloudFront, you must also specify the Region US East (N. Virginia) as follows:    CLI - Specify the Region when you use the CloudFront scope: --scope=CLOUDFRONT --region=us-east-1.    API and SDKs - For all calls, use the Region endpoint us-east-1.
        public let scope: Scope
        /// Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services resource that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens only for the domain of the protected resource. With a token domain list, WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains. Example JSON: "TokenDomains": { "mywebsite.com", "myotherwebsite.com" }  Public suffixes aren't allowed. For example, you can't use gov.au or co.uk as token domains.
        public let tokenDomains: [String]?
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(associationConfig: AssociationConfig? = nil, captchaConfig: CaptchaConfig? = nil, challengeConfig: ChallengeConfig? = nil, customResponseBodies: [String: CustomResponseBody]? = nil, dataProtectionConfig: DataProtectionConfig? = nil, defaultAction: DefaultAction, description: String? = nil, id: String, lockToken: String, name: String, onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig? = nil, rules: [Rule]? = nil, scope: Scope, tokenDomains: [String]? = nil, visibilityConfig: VisibilityConfig) {
            self.associationConfig = associationConfig
            self.captchaConfig = captchaConfig
            self.challengeConfig = challengeConfig
            self.customResponseBodies = customResponseBodies
            self.dataProtectionConfig = dataProtectionConfig
            self.defaultAction = defaultAction
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
            self.onSourceDDoSProtectionConfig = onSourceDDoSProtectionConfig
            self.rules = rules
            self.scope = scope
            self.tokenDomains = tokenDomains
            self.visibilityConfig = visibilityConfig
        }

        public func validate(name: String) throws {
            try self.captchaConfig?.validate(name: "\(name).captchaConfig")
            try self.challengeConfig?.validate(name: "\(name).challengeConfig")
            try self.customResponseBodies?.forEach {
                try validate($0.key, name: "customResponseBodies.key", parent: name, max: 128)
                try validate($0.key, name: "customResponseBodies.key", parent: name, min: 1)
                try validate($0.key, name: "customResponseBodies.key", parent: name, pattern: "^[\\w\\-]+$")
                try $0.value.validate(name: "\(name).customResponseBodies[\"\($0.key)\"]")
            }
            try self.validate(self.customResponseBodies, name: "customResponseBodies", parent: name, min: 1)
            try self.dataProtectionConfig?.validate(name: "\(name).dataProtectionConfig")
            try self.defaultAction.validate(name: "\(name).defaultAction")
            try self.validate(self.description, name: "description", parent: name, max: 256)
            try self.validate(self.description, name: "description", parent: name, min: 1)
            try self.validate(self.description, name: "description", parent: name, pattern: "^[\\w+=:#@/\\-,\\.][\\w+=:#@/\\-,\\.\\s]+[\\w+=:#@/\\-,\\.]$")
            try self.validate(self.id, name: "id", parent: name, max: 36)
            try self.validate(self.id, name: "id", parent: name, min: 1)
            try self.validate(self.id, name: "id", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.lockToken, name: "lockToken", parent: name, max: 36)
            try self.validate(self.lockToken, name: "lockToken", parent: name, min: 1)
            try self.validate(self.lockToken, name: "lockToken", parent: name, pattern: "^[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$")
            try self.validate(self.name, name: "name", parent: name, max: 128)
            try self.validate(self.name, name: "name", parent: name, min: 1)
            try self.validate(self.name, name: "name", parent: name, pattern: "^[\\w\\-]+$")
            try self.rules?.forEach {
                try $0.validate(name: "\(name).rules[]")
            }
            try self.tokenDomains?.forEach {
                try validate($0, name: "tokenDomains[]", parent: name, max: 253)
                try validate($0, name: "tokenDomains[]", parent: name, min: 1)
                try validate($0, name: "tokenDomains[]", parent: name, pattern: "^[\\w\\.\\-/]+$")
            }
            try self.visibilityConfig.validate(name: "\(name).visibilityConfig")
        }

        private enum CodingKeys: String, CodingKey {
            case associationConfig = "AssociationConfig"
            case captchaConfig = "CaptchaConfig"
            case challengeConfig = "ChallengeConfig"
            case customResponseBodies = "CustomResponseBodies"
            case dataProtectionConfig = "DataProtectionConfig"
            case defaultAction = "DefaultAction"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
            case onSourceDDoSProtectionConfig = "OnSourceDDoSProtectionConfig"
            case rules = "Rules"
            case scope = "Scope"
            case tokenDomains = "TokenDomains"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct UpdateWebACLResponse: AWSDecodableShape {
        /// A token used for optimistic locking. WAF returns this token to your update requests. You use NextLockToken in the same manner as you use LockToken.
        public let nextLockToken: String?

        @inlinable
        public init(nextLockToken: String? = nil) {
            self.nextLockToken = nextLockToken
        }

        private enum CodingKeys: String, CodingKey {
            case nextLockToken = "NextLockToken"
        }
    }

    public struct UriFragment: AWSEncodableShape & AWSDecodableShape {
        /// What WAF should do if it fails to completely parse the JSON body. The options are the following:    EVALUATE_AS_STRING - Inspect the body as plain text. WAF applies the text transformations and inspection criteria that you defined for the JSON inspection to the body text string.    MATCH - Treat the web request as matching the rule statement. WAF applies the rule action to the request.    NO_MATCH - Treat the web request as not matching the rule statement.   If you don't provide this setting, WAF parses and evaluates the content only up to the first parsing failure that it encounters.  Example JSON: { "UriFragment": { "FallbackBehavior": "MATCH"} }   WAF parsing doesn't fully validate the input JSON string, so parsing can succeed even for invalid JSON. When  parsing succeeds, WAF doesn't apply the fallback behavior. For more information,  see JSON body  in the WAF Developer Guide.
        public let fallbackBehavior: FallbackBehavior?

        @inlinable
        public init(fallbackBehavior: FallbackBehavior? = nil) {
            self.fallbackBehavior = fallbackBehavior
        }

        private enum CodingKeys: String, CodingKey {
            case fallbackBehavior = "FallbackBehavior"
        }
    }

    public struct UriPath: AWSEncodableShape & AWSDecodableShape {
        public init() {}
    }

    public struct UsernameField: AWSEncodableShape & AWSDecodableShape {
        /// The name of the username field.  How you specify this depends on the request inspection payload type.   For JSON payloads, specify the field name in JSON pointer syntax. For information about the JSON Pointer syntax, see the Internet Engineering Task Force (IETF) documentation JavaScript 	Object Notation (JSON) Pointer.  For example, for the JSON payload { "form": { "username": "THE_USERNAME" } },  the username field specification is /form/username.    For form encoded payload types, use the HTML form names. For example, for an HTML form with the input element named username1, the username field specification is username1
        public let identifier: String

        @inlinable
        public init(identifier: String) {
            self.identifier = identifier
        }

        public func validate(name: String) throws {
            try self.validate(self.identifier, name: "identifier", parent: name, max: 512)
            try self.validate(self.identifier, name: "identifier", parent: name, min: 1)
            try self.validate(self.identifier, name: "identifier", parent: name, pattern: "\\S")
        }

        private enum CodingKeys: String, CodingKey {
            case identifier = "Identifier"
        }
    }

    public struct VersionToPublish: AWSEncodableShape {
        /// The Amazon Resource Name (ARN) of the vendor's rule group that's used in the published managed rule group version.
        public let associatedRuleGroupArn: String?
        /// The amount of time the vendor expects this version of the managed rule group to last, in days.
        public let forecastedLifetime: Int?

        @inlinable
        public init(associatedRuleGroupArn: String? = nil, forecastedLifetime: Int? = nil) {
            self.associatedRuleGroupArn = associatedRuleGroupArn
            self.forecastedLifetime = forecastedLifetime
        }

        public func validate(name: String) throws {
            try self.validate(self.associatedRuleGroupArn, name: "associatedRuleGroupArn", parent: name, max: 2048)
            try self.validate(self.associatedRuleGroupArn, name: "associatedRuleGroupArn", parent: name, min: 20)
            try self.validate(self.associatedRuleGroupArn, name: "associatedRuleGroupArn", parent: name, pattern: "\\S")
            try self.validate(self.forecastedLifetime, name: "forecastedLifetime", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case associatedRuleGroupArn = "AssociatedRuleGroupArn"
            case forecastedLifetime = "ForecastedLifetime"
        }
    }

    public struct VisibilityConfig: AWSEncodableShape & AWSDecodableShape {
        /// Indicates whether the associated resource sends metrics to Amazon CloudWatch. For the list of available metrics, see WAF Metrics in the WAF Developer Guide. For web ACLs, the metrics are for web requests that have the web ACL default action applied.  WAF applies the default action to web requests that pass the inspection of all rules  in the web ACL without being either allowed or blocked. For more information,
        /// see The web ACL default action in the WAF Developer Guide.
        public let cloudWatchMetricsEnabled: Bool
        /// A name of the Amazon CloudWatch metric dimension. The name can contain only the characters: A-Z, a-z, 0-9, - (hyphen), and _ (underscore). The name can be from one to 128 characters long. It can't contain whitespace or metric names that are reserved for WAF, for example All and Default_Action.
        public let metricName: String
        /// Indicates whether WAF should store a sampling of the web requests that match the rules. You can view the sampled requests through the WAF console.  If you configure data protection for the web ACL, the protection applies to the web ACL's sampled web request data.   Request sampling doesn't provide a field redaction option, and any field redaction that you specify in your logging configuration doesn't affect sampling.  You can only exclude fields from request sampling by disabling sampling in the web ACL visibility configuration  or by configuring data protection for the web ACL.
        public let sampledRequestsEnabled: Bool

        @inlinable
        public init(cloudWatchMetricsEnabled: Bool, metricName: String, sampledRequestsEnabled: Bool) {
            self.cloudWatchMetricsEnabled = cloudWatchMetricsEnabled
            self.metricName = metricName
            self.sampledRequestsEnabled = sampledRequestsEnabled
        }

        public func validate(name: String) throws {
            try self.validate(self.metricName, name: "metricName", parent: name, max: 255)
            try self.validate(self.metricName, name: "metricName", parent: name, min: 1)
            try self.validate(self.metricName, name: "metricName", parent: name, pattern: "^[\\w#:\\.\\-/]+$")
        }

        private enum CodingKeys: String, CodingKey {
            case cloudWatchMetricsEnabled = "CloudWatchMetricsEnabled"
            case metricName = "MetricName"
            case sampledRequestsEnabled = "SampledRequestsEnabled"
        }
    }

    public struct WAFInvalidParameterException: AWSErrorShape {
        /// The settings where the invalid parameter was found.
        public let field: ParameterExceptionField?
        public let message: String?
        /// The invalid parameter that resulted in the exception.
        public let parameter: String?
        /// Additional information about the exception.
        public let reason: String?

        @inlinable
        public init(field: ParameterExceptionField? = nil, message: String? = nil, parameter: String? = nil, reason: String? = nil) {
            self.field = field
            self.message = message
            self.parameter = parameter
            self.reason = reason
        }

        private enum CodingKeys: String, CodingKey {
            case field = "Field"
            case message = "message"
            case parameter = "Parameter"
            case reason = "Reason"
        }
    }

    public struct WAFLimitsExceededException: AWSErrorShape {
        public let message: String?
        /// Source type for the exception.
        public let sourceType: String?

        @inlinable
        public init(message: String? = nil, sourceType: String? = nil) {
            self.message = message
            self.sourceType = sourceType
        }

        private enum CodingKeys: String, CodingKey {
            case message = "Message"
            case sourceType = "SourceType"
        }
    }

    public struct WebACL: AWSDecodableShape {
        /// Returns a list of ApplicationAttributes.
        public let applicationConfig: ApplicationConfig?
        /// The Amazon Resource Name (ARN) of the web ACL that you want to associate with the resource.
        public let arn: String
        /// Specifies custom configurations for the associations between the web ACL and protected resources.   Use this to customize the maximum size of the request body that your protected resources forward to WAF for inspection. You can  customize this setting for CloudFront, API Gateway, Amazon Cognito, App Runner, or Verified Access resources. The default setting is 16 KB (16,384 bytes).   You are charged additional fees when your protected resources forward body sizes that are larger than the default. For more information, see WAF Pricing.  For Application Load Balancer and AppSync, the limit is fixed at 8 KB (8,192 bytes).
        public let associationConfig: AssociationConfig?
        /// The web ACL capacity units (WCUs) currently being used by this web ACL.  WAF uses WCUs to calculate and control the operating resources that are used to run your rules, rule groups, and web ACLs. WAF calculates capacity differently for each rule type, to reflect the relative cost of each rule.  Simple rules that cost little to run use fewer WCUs than more complex rules
        /// 				that use more processing power.
        /// 				Rule group capacity is fixed at creation, which helps users plan their   web ACL WCU usage when they use a rule group. For more information, see WAF web ACL capacity units (WCU)  in the WAF Developer Guide.
        public let capacity: Int64?
        /// Specifies how WAF should handle CAPTCHA evaluations for rules that don't have their own CaptchaConfig settings. If you don't specify this, WAF uses its default settings for CaptchaConfig.
        public let captchaConfig: CaptchaConfig?
        /// Specifies how WAF should handle challenge evaluations for rules that don't have
        /// their own ChallengeConfig settings. If you don't specify this, WAF uses its default settings for ChallengeConfig.
        public let challengeConfig: ChallengeConfig?
        /// A map of custom response keys and content bodies. When you create a rule with a block action, you can send a custom response to the web request. You define these for the web ACL, and then use them in the rules and default actions that you define in the web ACL.  For information about customizing web requests and responses,  see Customizing web requests and responses in WAF  in the WAF Developer Guide.  For information about the limits on count and size for custom request and response settings, see WAF quotas  in the WAF Developer Guide.
        public let customResponseBodies: [String: CustomResponseBody]?
        /// Specifies data protection to apply to the web request data for the web ACL. This is a web ACL level data protection option.  The data protection that you configure for the web ACL alters the data that's available for any other data collection activity,  including your WAF logging destinations, web ACL request sampling, and Amazon Security Lake data collection and management. Your other option for data protection is in the logging configuration, which only affects logging.
        public let dataProtectionConfig: DataProtectionConfig?
        /// The action to perform if none of the Rules contained in the WebACL match.
        public let defaultAction: DefaultAction
        /// A description of the web ACL that helps with identification.
        public let description: String?
        /// A unique identifier for the WebACL. This ID is returned in the responses to create and list commands. You use this ID to do things like get, update, and delete a WebACL.
        public let id: String
        /// The label namespace prefix for this web ACL. All labels added by rules in this web ACL have this prefix.    The syntax for the label namespace prefix for a web ACL is the following:   awswaf::webacl::    When a rule with a label matches a web request, WAF adds the fully qualified label to the request. A fully qualified label is made up of the label namespace from the rule group or web ACL where the rule is defined and the label from the rule, separated by a colon:   :
        public let labelNamespace: String?
        /// Indicates whether this web ACL was created by Firewall Manager and is being managed by Firewall Manager. If true, then only Firewall Manager can delete the web ACL or any Firewall Manager rule groups in the web ACL.  See also the properties RetrofittedByFirewallManager, PreProcessFirewallManagerRuleGroups, and PostProcessFirewallManagerRuleGroups.
        public let managedByFirewallManager: Bool?
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String
        /// Configures the level of DDoS protection that applies to web ACLs associated with Application Load Balancers.
        public let onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig?
        /// The last set of rules for WAF to process in the web ACL. This is defined in an Firewall Manager WAF policy and contains only rule group references. You can't alter these. Any rules and rule groups that you define for the web ACL are prioritized before these.  In the Firewall Manager WAF policy, the Firewall Manager administrator can define a set of rule groups to run first in the web ACL and a set of rule groups to run last. Within each set, the administrator prioritizes the rule groups, to determine their relative processing order.
        public let postProcessFirewallManagerRuleGroups: [FirewallManagerRuleGroup]?
        /// The first set of rules for WAF to process in the web ACL. This is defined in an Firewall Manager WAF policy and contains only rule group references. You can't alter these. Any rules and rule groups that you define for the web ACL are prioritized after these.  In the Firewall Manager WAF policy, the Firewall Manager administrator can define a set of rule groups to run first in the web ACL and a set of rule groups to run last. Within each set, the administrator prioritizes the rule groups, to determine their relative processing order.
        public let preProcessFirewallManagerRuleGroups: [FirewallManagerRuleGroup]?
        /// Indicates whether this web ACL was created by a customer account and then retrofitted by Firewall Manager. If true, then the web ACL is currently being  managed by a Firewall Manager WAF policy, and only Firewall Manager can manage any Firewall Manager rule groups in the web ACL.  See also the properties ManagedByFirewallManager, PreProcessFirewallManagerRuleGroups, and PostProcessFirewallManagerRuleGroups.
        public let retrofittedByFirewallManager: Bool?
        /// The Rule statements used to identify the web requests that you  want to manage. Each rule includes one top-level statement that WAF uses to identify matching   web requests, and parameters that govern how WAF handles them.
        public let rules: [Rule]?
        /// Specifies the domains that WAF should accept in a web request token. This enables the use of tokens across multiple protected websites. When WAF provides a token, it uses the domain of the Amazon Web Services resource that the web ACL is protecting. If you don't specify a list of token domains, WAF accepts tokens only for the domain of the protected resource. With a token domain list, WAF accepts the resource's host domain plus all domains in the token domain list, including their prefixed subdomains.
        public let tokenDomains: [String]?
        /// Defines and enables Amazon CloudWatch metrics and web request sample collection.
        public let visibilityConfig: VisibilityConfig

        @inlinable
        public init(applicationConfig: ApplicationConfig? = nil, arn: String, associationConfig: AssociationConfig? = nil, capacity: Int64? = nil, captchaConfig: CaptchaConfig? = nil, challengeConfig: ChallengeConfig? = nil, customResponseBodies: [String: CustomResponseBody]? = nil, dataProtectionConfig: DataProtectionConfig? = nil, defaultAction: DefaultAction, description: String? = nil, id: String, labelNamespace: String? = nil, managedByFirewallManager: Bool? = nil, name: String, onSourceDDoSProtectionConfig: OnSourceDDoSProtectionConfig? = nil, postProcessFirewallManagerRuleGroups: [FirewallManagerRuleGroup]? = nil, preProcessFirewallManagerRuleGroups: [FirewallManagerRuleGroup]? = nil, retrofittedByFirewallManager: Bool? = nil, rules: [Rule]? = nil, tokenDomains: [String]? = nil, visibilityConfig: VisibilityConfig) {
            self.applicationConfig = applicationConfig
            self.arn = arn
            self.associationConfig = associationConfig
            self.capacity = capacity
            self.captchaConfig = captchaConfig
            self.challengeConfig = challengeConfig
            self.customResponseBodies = customResponseBodies
            self.dataProtectionConfig = dataProtectionConfig
            self.defaultAction = defaultAction
            self.description = description
            self.id = id
            self.labelNamespace = labelNamespace
            self.managedByFirewallManager = managedByFirewallManager
            self.name = name
            self.onSourceDDoSProtectionConfig = onSourceDDoSProtectionConfig
            self.postProcessFirewallManagerRuleGroups = postProcessFirewallManagerRuleGroups
            self.preProcessFirewallManagerRuleGroups = preProcessFirewallManagerRuleGroups
            self.retrofittedByFirewallManager = retrofittedByFirewallManager
            self.rules = rules
            self.tokenDomains = tokenDomains
            self.visibilityConfig = visibilityConfig
        }

        private enum CodingKeys: String, CodingKey {
            case applicationConfig = "ApplicationConfig"
            case arn = "ARN"
            case associationConfig = "AssociationConfig"
            case capacity = "Capacity"
            case captchaConfig = "CaptchaConfig"
            case challengeConfig = "ChallengeConfig"
            case customResponseBodies = "CustomResponseBodies"
            case dataProtectionConfig = "DataProtectionConfig"
            case defaultAction = "DefaultAction"
            case description = "Description"
            case id = "Id"
            case labelNamespace = "LabelNamespace"
            case managedByFirewallManager = "ManagedByFirewallManager"
            case name = "Name"
            case onSourceDDoSProtectionConfig = "OnSourceDDoSProtectionConfig"
            case postProcessFirewallManagerRuleGroups = "PostProcessFirewallManagerRuleGroups"
            case preProcessFirewallManagerRuleGroups = "PreProcessFirewallManagerRuleGroups"
            case retrofittedByFirewallManager = "RetrofittedByFirewallManager"
            case rules = "Rules"
            case tokenDomains = "TokenDomains"
            case visibilityConfig = "VisibilityConfig"
        }
    }

    public struct WebACLSummary: AWSDecodableShape {
        /// The Amazon Resource Name (ARN) of the entity.
        public let arn: String?
        /// A description of the web ACL that helps with identification.
        public let description: String?
        /// The unique identifier for the web ACL. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.
        public let id: String?
        /// A token used for optimistic locking. WAF returns a token to your get and list requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like update and delete. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a WAFOptimisticLockException. If this happens, perform another get, and use the new token returned by that operation.
        public let lockToken: String?
        /// The name of the web ACL. You cannot change the name of a web ACL after you create it.
        public let name: String?

        @inlinable
        public init(arn: String? = nil, description: String? = nil, id: String? = nil, lockToken: String? = nil, name: String? = nil) {
            self.arn = arn
            self.description = description
            self.id = id
            self.lockToken = lockToken
            self.name = name
        }

        private enum CodingKeys: String, CodingKey {
            case arn = "ARN"
            case description = "Description"
            case id = "Id"
            case lockToken = "LockToken"
            case name = "Name"
        }
    }

    public struct XssMatchStatement: AWSEncodableShape & AWSDecodableShape {
        /// The part of the web request that you want WAF to inspect.
        public let fieldToMatch: FieldToMatch
        /// Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. Text transformations are used in rule match statements, to transform the FieldToMatch request component before inspecting it, and they're used in rate-based rule statements, to transform request components before using them as custom aggregation keys. If you specify one or more transformations to apply, WAF performs all transformations on the specified content, starting from the lowest priority setting, and then uses the transformed component contents.
        public let textTransformations: [TextTransformation]

        @inlinable
        public init(fieldToMatch: FieldToMatch, textTransformations: [TextTransformation]) {
            self.fieldToMatch = fieldToMatch
            self.textTransformations = textTransformations
        }

        public func validate(name: String) throws {
            try self.fieldToMatch.validate(name: "\(name).fieldToMatch")
            try self.textTransformations.forEach {
                try $0.validate(name: "\(name).textTransformations[]")
            }
            try self.validate(self.textTransformations, name: "textTransformations", parent: name, min: 1)
        }

        private enum CodingKeys: String, CodingKey {
            case fieldToMatch = "FieldToMatch"
            case textTransformations = "TextTransformations"
        }
    }
}

// MARK: - Errors

/// Error enum for WAFV2
public struct WAFV2ErrorType: AWSErrorType {
    enum Code: String {
        case wafAssociatedItemException = "WAFAssociatedItemException"
        case wafConfigurationWarningException = "WAFConfigurationWarningException"
        case wafDuplicateItemException = "WAFDuplicateItemException"
        case wafExpiredManagedRuleGroupVersionException = "WAFExpiredManagedRuleGroupVersionException"
        case wafInternalErrorException = "WAFInternalErrorException"
        case wafInvalidOperationException = "WAFInvalidOperationException"
        case wafInvalidParameterException = "WAFInvalidParameterException"
        case wafInvalidPermissionPolicyException = "WAFInvalidPermissionPolicyException"
        case wafInvalidResourceException = "WAFInvalidResourceException"
        case wafLimitsExceededException = "WAFLimitsExceededException"
        case wafLogDestinationPermissionIssueException = "WAFLogDestinationPermissionIssueException"
        case wafNonexistentItemException = "WAFNonexistentItemException"
        case wafOptimisticLockException = "WAFOptimisticLockException"
        case wafServiceLinkedRoleErrorException = "WAFServiceLinkedRoleErrorException"
        case wafSubscriptionNotFoundException = "WAFSubscriptionNotFoundException"
        case wafTagOperationException = "WAFTagOperationException"
        case wafTagOperationInternalErrorException = "WAFTagOperationInternalErrorException"
        case wafUnavailableEntityException = "WAFUnavailableEntityException"
        case wafUnsupportedAggregateKeyTypeException = "WAFUnsupportedAggregateKeyTypeException"
    }

    private let error: Code
    public let context: AWSErrorContext?

    /// initialize WAFV2
    public init?(errorCode: String, context: AWSErrorContext) {
        guard let error = Code(rawValue: errorCode) else { return nil }
        self.error = error
        self.context = context
    }

    internal init(_ error: Code) {
        self.error = error
        self.context = nil
    }

    /// return error code string
    public var errorCode: String { self.error.rawValue }

    /// WAF couldn’t perform the operation because your resource is being used by another resource or it’s associated with another resource.
    public static var wafAssociatedItemException: Self { .init(.wafAssociatedItemException) }
    /// The operation failed because you are inspecting the web request body, headers, or cookies without specifying how to handle oversize components. Rules that inspect the body must either provide an OversizeHandling configuration or they must be preceded by a SizeConstraintStatement that blocks the body content from being too large. Rules that inspect the headers or cookies must provide an OversizeHandling configuration.  Provide the handling configuration and retry your operation. Alternately, you can suppress this warning by adding the following tag to the resource that you provide to this operation: Tag (key:WAF:OversizeFieldsHandlingConstraintOptOut, value:true).
    public static var wafConfigurationWarningException: Self { .init(.wafConfigurationWarningException) }
    /// WAF couldn’t perform the operation because the resource that you tried to save is a duplicate of an existing one.
    public static var wafDuplicateItemException: Self { .init(.wafDuplicateItemException) }
    /// The operation failed because the specified version for the managed rule group has expired. You can retrieve the available versions for the managed rule group by calling ListAvailableManagedRuleGroupVersions.
    public static var wafExpiredManagedRuleGroupVersionException: Self { .init(.wafExpiredManagedRuleGroupVersionException) }
    /// Your request is valid, but WAF couldn’t perform the operation because of a system problem. Retry your request.
    public static var wafInternalErrorException: Self { .init(.wafInternalErrorException) }
    /// The operation isn't valid.
    public static var wafInvalidOperationException: Self { .init(.wafInvalidOperationException) }
    /// The operation failed because WAF didn't recognize a parameter in the request. For example:    You specified a parameter name or value that isn't valid.   Your nested statement isn't valid. You might have tried to nest a statement that can’t be nested.    You tried to update a WebACL with a DefaultAction that isn't among the types available at DefaultAction.   Your request references an ARN that is malformed, or corresponds to a resource with which a web ACL can't be associated.
    public static var wafInvalidParameterException: Self { .init(.wafInvalidParameterException) }
    /// The operation failed because the specified policy isn't in the proper format.  The policy specifications must conform to the following:   The policy must be composed using IAM Policy version 2012-10-17.   The policy must include specifications for Effect, Action, and Principal.    Effect must specify Allow.    Action must specify wafv2:CreateWebACL, wafv2:UpdateWebACL, and  wafv2:PutFirewallManagerRuleGroups and may optionally specify wafv2:GetRuleGroup.  WAF rejects any extra actions or wildcard actions in the policy.   The policy must not include a Resource parameter.   For more information, see IAM Policies.
    public static var wafInvalidPermissionPolicyException: Self { .init(.wafInvalidPermissionPolicyException) }
    /// WAF couldn’t perform the operation because the resource that you requested isn’t valid. Check the resource, and try again.
    public static var wafInvalidResourceException: Self { .init(.wafInvalidResourceException) }
    /// WAF couldn’t perform the operation because you exceeded your resource limit. For example, the maximum number of WebACL objects that you can create for an Amazon Web Services account. For more information, see WAF quotas in the WAF Developer Guide.
    public static var wafLimitsExceededException: Self { .init(.wafLimitsExceededException) }
    /// The operation failed because you don't have the permissions that your logging configuration requires. For information, see Logging web ACL traffic information in the WAF Developer Guide.
    public static var wafLogDestinationPermissionIssueException: Self { .init(.wafLogDestinationPermissionIssueException) }
    /// WAF couldn’t perform the operation because your resource doesn't exist.  If you've just created a resource that you're using in this operation, you might  just need to wait a few minutes. It can take from a few seconds to a number of minutes  for changes to propagate.
    public static var wafNonexistentItemException: Self { .init(.wafNonexistentItemException) }
    /// WAF couldn’t save your changes because you tried to update or delete a resource that has changed since you last retrieved it. Get the resource again, make any changes you need to make to the new copy, and retry your operation.
    public static var wafOptimisticLockException: Self { .init(.wafOptimisticLockException) }
    /// WAF is not able to access the service linked role. This can be caused by a previous PutLoggingConfiguration request, which can lock the service linked role for about 20 seconds. Please try your request again. The service linked role can also be locked by a previous DeleteServiceLinkedRole request, which can lock the role for 15 minutes or more. If you recently made a call to DeleteServiceLinkedRole, wait at least 15 minutes and try the request again. If you receive this same exception again, you will have to wait additional time until the role is unlocked.
    public static var wafServiceLinkedRoleErrorException: Self { .init(.wafServiceLinkedRoleErrorException) }
    /// You tried to use a managed rule group that's available by subscription, but you aren't subscribed to it yet.
    public static var wafSubscriptionNotFoundException: Self { .init(.wafSubscriptionNotFoundException) }
    /// An error occurred during the tagging operation. Retry your request.
    public static var wafTagOperationException: Self { .init(.wafTagOperationException) }
    /// WAF couldn’t perform your tagging operation because of an internal error. Retry your request.
    public static var wafTagOperationInternalErrorException: Self { .init(.wafTagOperationInternalErrorException) }
    /// WAF couldn’t retrieve a resource that you specified for this operation.  If you've just created a resource that you're using in this operation, you might  just need to wait a few minutes. It can take from a few seconds to a number of minutes  for changes to propagate. Verify the resource specifications in your request  parameters and then retry the operation.
    public static var wafUnavailableEntityException: Self { .init(.wafUnavailableEntityException) }
    /// The rule that you've named doesn't aggregate solely on the IP address or solely on the forwarded IP address. This call  is only available for rate-based rules with an AggregateKeyType setting of IP or FORWARDED_IP.
    public static var wafUnsupportedAggregateKeyTypeException: Self { .init(.wafUnsupportedAggregateKeyTypeException) }
}

extension WAFV2ErrorType: AWSServiceErrorType {
    public static let errorCodeMap: [String: AWSErrorShape.Type] = [
        "WAFInvalidParameterException": WAFV2.WAFInvalidParameterException.self,
        "WAFLimitsExceededException": WAFV2.WAFLimitsExceededException.self
    ]
}

extension WAFV2ErrorType: Equatable {
    public static func == (lhs: WAFV2ErrorType, rhs: WAFV2ErrorType) -> Bool {
        lhs.error == rhs.error
    }
}

extension WAFV2ErrorType: CustomStringConvertible {
    public var description: String {
        return "\(self.error.rawValue): \(self.message ?? "")"
    }
}
